Ft.Lib.Time

Modules

calendar  re  rfc822  time 

Classes

class DT
_DT__normalizeDate = __normalizeDate(self, day, month, year)
_DT__normalizeHour = __normalizeHour(self, hour)
_DT__normalizeMinute = __normalizeMinute(self, minute)
__cmp__(self, other)
__init__(self, year, month, day, hour, minute, second, milliSecond, daylightSavings, tzName, tzHourOffset, tzMinuteOffset)
__str__ = asISO8601DateTime(self, local=0)
abbreviatedMonthName(self, local=0)
asISO8601Date(self, local=0)
asISO8601DateTime(self, local=0)
asISO8601Time(self, local=0)
asPythonTime(self, local=0)
asPythonTimeTuple(self, local=0)
asRFC822DateTime(self, local=0)
day(self, local=0)
dayOfWeek(self, local=0)
dayOfYear(self, local=0)
hour(self, local=0)
milliSecond(self)
minute(self, local=0)
month(self, local=0)
monthName(self, local=0)
second(self)
tzHourOffset(self)
tzMinuteOffset(self)
tzName(self)
year(self, local=0)

Data and other non-method functions defined here:

__doc__ = None
__module__ = 'Ft.Lib.Time'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
abbreviatedMonthNameTable = ('ERR', 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec')
tuple() -> an empty tuple tuple(sequence) -> tuple initialized from sequence's items

If the argument is a tuple, the return value is the same object.
abbreviatedWeekdayNameTable = ('Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun')
tuple() -> an empty tuple tuple(sequence) -> tuple initialized from sequence's items

If the argument is a tuple, the return value is the same object.
monthNameTable = ('ERROR', 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December')
tuple() -> an empty tuple tuple(sequence) -> tuple initialized from sequence's items

If the argument is a tuple, the return value is the same object.
tzNameTable = {-12: ('GMT-11', 'Yankee', 'IDLW', None), -11: ('GMT-11', 'XRay', 'NT', None), -10: ('GMT-10', 'Whiskey', 'AHST', None), -9.5: ('GMT-9:30', '', '', 'HDT'), -9: ('GMT-9', 'Victor', 'YST', None), -8.5: ('GMT-8:30', '', '', 'YDT'), -8: ('GMT-8', 'Uniform', 'PST', None), -7: ('GMT-7', 'Tango', 'MST', 'PDT'), -6: ('GMT-6', 'Sierra', 'CST', 'MDT'), -5: ('GMT-5', 'Romeo', 'EST', 'CDT'), ...}
weekdayNameTable = ('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday')
tuple() -> an empty tuple tuple(sequence) -> tuple initialized from sequence's items

If the argument is a tuple, the return value is the same object.

Functions

DayOfYearFromYMD(year, month, day)
FromISO8601(st)
FromPythonTime(t=None)
FromPythonTimeTuple(t)
FromRFC822(st)
WeekdayFromYMD(year, month, day)
isDST(t)

Data

BASIC_TIME_ZONE = r'(?P<TzOffset>(?P<TzDirection>\+|-)(?P<TzHour>(?:...0-4]))(?::?(?P<TzMinute>(?:[0-5][0-9])|(?:60)))?)'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
DAY = '(?P<Day>[0-9]{2,2})'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
DAY_OF_MONTH = '--(?P<Month>[0-9]{2,2})(?:-?(?P<Day>[0-9]{2,2}))?'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
DAY_ONLY_DATE = '---(?P<Day>[0-9]{2,2})'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
DECIMAL_SEPERATOR = r'(?:\.|,)'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
DECIMAL_VALUE = '(?P<DecimalValue>[0-9]*)'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
EXTENDED_DATE = '(?P<Century>[0-9]{2,2})?(?P<Year>[0-9]{2,2})-(?P<Month>[0-9]{2,2})-(?P<Day>[0-9]{2,2})'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
STRING_TYPES = [<type 'str'>, <type 'unicode'>]
WEEK_IN_DECADE_EXTENDED = '-(?P<YearInDecade>[0-9])-W(?P<Week>[0-9][0-9])-(?P<Weekday>[1-7])'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
__file__ = 'build/lib.linux-ppc-2.2/Ft/Lib/Time.py'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
__name__ = 'Ft.Lib.Time'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
_month_days = ((0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31), (0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31))
tuple() -> an empty tuple tuple(sequence) -> tuple initialized from sequence's items

If the argument is a tuple, the return value is the same object.
g_isoExpressions = [['^(?P<Date>(?P<CalendarDate>(?P<Century>[0-9]{2,2...{2,2})(?P<Month>[0-9]{2,2})(?P<Day>[0-9]{2,2})))$', None], ['^(?P<Date>(?P<CalendarDate>(?P<Century>[0-9]{2,2...,2})-(?P<Month>[0-9]{2,2})-(?P<Day>[0-9]{2,2})))$', None], ['^(?P<Date>(?P<CalendarDate>(-|(?P<Century>[0-9]{2,2}))(?P<Year>[0-9]{2,2})-(?P<Month>[0-9]{2,2})))$', None], ['^(?P<Date>(?P<CalendarDate>-(?P<Year>[0-9]{2,2})(?P<Month>[0-9]{2,2})))$', None], ['^(?P<Date>(?P<CalendarDate>(-|(?P<Century>[0-9]{2,2}))(?P<Year>[0-9]{2,2})))$', None], ['^(?P<Date>(?P<CalendarDate>(?P<Century>[0-9]{2,2})))$', None], ['^(?P<Date>(?P<CalendarDate>--(?P<Month>[0-9]{2,2})(?:-?(?P<Day>[0-9]{2,2}))?))$', None], ['^(?P<Date>(?P<CalendarDate>---(?P<Day>[0-9]{2,2})))$', None], ['^(?P<Date>(?P<OrdinalDate>(?P<Century>[0-9]{2,2})?(?P<Year>[0-9]{2,2})-?(?P<Ordinal>[0-9]{3,3})))$', None], ['^(?P<Date>(?P<OrdinalDate>-(?P<Ordinal>[0-9]{3,3})))$', None], ['^(?P<Date>(?P<WeekDate>(?P<Century>[0-9]{2,2})?(...{2,2})W(?P<Week>[0-9][0-9])(?P<Weekday>[1-7])?))$', None], ['^(?P<Date>(?P<WeekDate>(?P<Century>[0-9]{2,2})?(...-W(?P<Week>[0-9][0-9])(?:-(?P<Weekday>[1-7]))?))$', None], ['^(?P<Date>(?P<WeekDate>-(?P<YearInDecade>[0-9])W(?P<Week>[0-9][0-9])(?P<Weekday>[1-7])))$', None], ['^(?P<Date>(?P<WeekDate>-(?P<YearInDecade>[0-9])-W(?P<Week>[0-9][0-9])-(?P<Weekday>[1-7])))$', None], ['^(?P<Date>(?P<WeekDate>-W(?P<Week>[0-9][0-9])(?:-?(?P<Weekday>[1-7]))?))$', None], ['^(?P<Date>(?P<WeekDate>-W?-(?P<Weekday>[1-7])))$', None], ['^(?P<Time>(?:(?P<Hour>(?:0[0-9])|(?:1[0-9])|(?:2...]))(?::?(?P<TzMinute>(?:[0-5][0-9])|(?:60)))?))?$', None], ['^(?P<Time>(?:(?P<Hour>(?:0[0-9])|(?:1[0-9])|(?:2...]))(?::?(?P<TzMinute>(?:[0-5][0-9])|(?:60)))?))?$', None], ['^(?P<Time>(?:(?P<Hour>(?:0[0-9])|(?:1[0-9])|(?:2...]))(?::?(?P<TzMinute>(?:[0-5][0-9])|(?:60)))?))?$', None], ['^(?P<Time>(?:(?P<Hour>(?:0[0-9])|(?:1[0-9])|(?:2...]))(?::?(?P<TzMinute>(?:[0-5][0-9])|(?:60)))?))?$', None], ...]