Back to index

python3.2  3.2.2
Classes | Functions | Variables
test.datetimetester Namespace Reference

Classes

class  TestModule
 module tests More...
class  FixedOffset
class  PicklableFixedOffset
class  TestTZInfo
class  TestTimeZone
class  HarmlessMixedComparison
class  TestTimeDelta
class  TestDateOnly
class  SubclassDate
class  TestDate
class  SubclassDatetime
class  TestDateTime
class  TestSubclassDateTime
class  SubclassTime
class  TestTime
class  TZInfoBase
class  TestTimeTZ
class  TestDateTimeTZ
class  USTimeZone
class  TestTimezoneConversions
class  Oddballs

Functions

def first_sunday_on_or_after
def test_main

Variables

list pickle_choices
tuple OTHERSTUFF = (10, 34.5, "abc", {}, [], ())
tuple INF = float("inf")
tuple NAN = float("nan")
tuple ZERO = timedelta(0)
tuple MINUTE = timedelta(minutes=1)
tuple HOUR = timedelta(hours=1)
tuple DAY = timedelta(days=1)
tuple DSTSTART = datetime(1, 4, 1, 2)
tuple DSTEND = datetime(1, 10, 25, 1)
tuple Eastern = USTimeZone(-5, "Eastern", "EST", "EDT")
tuple Central = USTimeZone(-6, "Central", "CST", "CDT")
tuple Mountain = USTimeZone(-7, "Mountain", "MST", "MDT")
tuple Pacific = USTimeZone(-8, "Pacific", "PST", "PDT")
tuple utc_real = FixedOffset(0, "UTC", 0)
tuple utc_fake = FixedOffset(-12*60, "UTCfake", 0)

Detailed Description

Test date/time type.

See http://www.zope.org/Members/fdrake/DateTimeWiki/TestCases

Function Documentation

Definition at line 3314 of file datetimetester.py.

03314 
03315 def first_sunday_on_or_after(dt):
03316     days_to_go = 6 - dt.weekday()
03317     if days_to_go:
03318         dt += timedelta(days_to_go)
03319     return dt

Here is the caller graph for this function:

Definition at line 3681 of file datetimetester.py.

03681 
03682 def test_main():
03683     support.run_unittest(__name__)


Variable Documentation

tuple test.datetimetester.Central = USTimeZone(-6, "Central", "CST", "CDT")

Definition at line 3375 of file datetimetester.py.

Definition at line 3323 of file datetimetester.py.

tuple test.datetimetester.DSTEND = datetime(1, 10, 25, 1)

Definition at line 3330 of file datetimetester.py.

Definition at line 3325 of file datetimetester.py.

tuple test.datetimetester.Eastern = USTimeZone(-5, "Eastern", "EST", "EDT")

Definition at line 3374 of file datetimetester.py.

Definition at line 3322 of file datetimetester.py.

tuple test.datetimetester.INF = float("inf")

Definition at line 38 of file datetimetester.py.

Definition at line 3321 of file datetimetester.py.

tuple test.datetimetester.Mountain = USTimeZone(-7, "Mountain", "MST", "MDT")

Definition at line 3376 of file datetimetester.py.

tuple test.datetimetester.NAN = float("nan")

Definition at line 39 of file datetimetester.py.

tuple test.datetimetester.OTHERSTUFF = (10, 34.5, "abc", {}, [], ())

Definition at line 34 of file datetimetester.py.

tuple test.datetimetester.Pacific = USTimeZone(-8, "Pacific", "PST", "PDT")

Definition at line 3377 of file datetimetester.py.

Initial value:
00001 [(pickle, pickle, proto)
00002                   for proto in range(pickle.HIGHEST_PROTOCOL + 1)]

Definition at line 28 of file datetimetester.py.

tuple test.datetimetester.utc_fake = FixedOffset(-12*60, "UTCfake", 0)

Definition at line 3381 of file datetimetester.py.

Definition at line 3378 of file datetimetester.py.

Definition at line 3320 of file datetimetester.py.