Module Expr Str Import alias Import alias Import alias ImportFrom alias alias alias alias alias alias ImportFrom alias ImportFrom alias identifier ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad For TupleStore NameStore NameStore Call NameLoad Call AttributeLoad NameLoad attr Call NameLoad NameLoad body If BinOpMod NameLoad Num body Expr Call AttributeLoad NameLoad attr Call NameLoad Call Call NameLoad NameLoad NameLoad orelse If NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Return Call AttributeLoad Str attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareGt AttributeLoad AttributeLoad NameLoad attr attr Num body Return Call NameLoad Str Return Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareGt AttributeLoad AttributeLoad NameLoad attr attr Num body Return Call NameLoad Str Return Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Raise NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareEq AttributeLoad AttributeLoad NameLoad attr attr Num body Return Call AttributeLoad NameLoad attr Return BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareEq AttributeLoad AttributeLoad NameLoad attr attr Num body Return Num If CompareGt AttributeLoad AttributeLoad NameLoad attr attr Num body Return BinOpSub AttributeLoad AttributeLoad NameLoad attr attr Num Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return BinOpMod Str Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return BinOpMod Str Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If BoolOpAnd CompareEq AttributeLoad AttributeLoad NameLoad attr attr Num CompareEq AttributeLoad AttributeLoad NameLoad attr attr Num body Return Call NameLoad Str If BoolOpAnd CompareEq AttributeLoad AttributeLoad NameLoad attr attr Num CompareEq AttributeLoad AttributeLoad NameLoad attr attr Num body Return Call NameLoad Str Return BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad NameLoad Num Num Num Num Num Num Num Num Num Num Num Num FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Str NameLoad If BoolOpAnd Call NameLoad AttributeLoad NameLoad attr Str UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return SubscriptLoad NameLoad Index AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return SubscriptLoad NameLoad Index Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return SubscriptLoad NameLoad Index AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return SubscriptLoad NameLoad Index AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If BoolOpAnd AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Return Str orelse Return Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return SubscriptLoad NameLoad Index Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad SubscriptLoad NameLoad Index AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return SubscriptLoad NameLoad Index AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Return BinOpMod Str TupleLoad BinOpFloorDiv NameLoad Num BinOpMod BinOpFloorDiv NameLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIn AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Num Num Num body Return Str Assign NameStore BinOpMod AttributeLoad AttributeLoad NameLoad attr attr Num If CompareEq NameLoad Num body Return Str If CompareEq NameLoad Num body Return Str If CompareEq NameLoad Num body Return Str Return Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return BinOpMod Str SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Index Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore BoolOpOr BoolOpAnd AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If Call NameLoad AttributeLoad NameLoad attr Str NameLoad body Return Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr orelse Return Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return BinOpMod BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore NameLoad Assign NameStore BinOpAdd Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num keyword Num attr Num Assign NameStore BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad NameLoad attr If BoolOpAnd CompareLtE NameLoad BinOpSub Num NameLoad CompareGt NameLoad Num body If BoolOpOr CompareEq NameLoad Num BoolOpAnd CompareEq NameLoad Num Call AttributeLoad NameLoad attr BinOpSub AttributeLoad AttributeLoad NameLoad attr attr Num body Assign NameStore Num orelse Assign NameStore Num orelse If Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Num orelse Assign NameStore Num If CompareLt BinOpSub NameLoad NameLoad BinOpSub Num NameLoad body Assign NameStore Num orelse Assign NameStore BinOpAdd BinOpAdd NameLoad BinOpSub Num NameLoad BinOpSub NameLoad Num Assign NameStore BinOpFloorDiv NameLoad Num If CompareGt NameLoad Num body AugAssignSub NameStore Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return SubscriptLoad Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Slice Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore BinOpAdd SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr If BoolOpAnd Call AttributeLoad NameLoad attr CompareGt AttributeLoad AttributeLoad NameLoad attr attr Num body AugAssignAdd NameStore Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Return Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Return BinOpAdd BinOpMult AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list
N/A N/A 
PHP date() style date formatting
See http://www.php.net/date for format strings

Usage:
>>> import datetime
>>> d = datetime.datetime.now()
>>> df = DateFormat(d)
>>> print df.format('jS F Y H:i')
7th October 2003 11:39
>>>
 N/A re N/A time N/A calendar airy.utils.dates MONTHS MONTHS_3 MONTHS_ALT MONTHS_AP WEEKDAYS WEEKDAYS_ABBR airy.utils.tzinfo LocalTimezone airy.utils.translation ugettext _ airy.utils.encoding force_unicode N/A re_formatchars N/A N/A re compile (?<!\\)([aAbBcdDEfFgGhHiIjlLmMnNOPrsStTUuwWyYzZ]) N/A re_escaped N/A N/A re compile \\(.) Formatter N/A object N/A format N/A N/A self formatstr N/A N/A N/A pieces N/A N/A N/A i piece N/A enumerate N/A N/A re_formatchars split N/A force_unicode formatstr N/A N/A N/A i 2 N/A N/A N/A N/A pieces append N/A force_unicode N/A N/A getattr self piece N/A N/A piece N/A N/A N/A N/A pieces append N/A N/A re_escaped sub \1 piece N/A N/A N/A join pieces N/A N/A TimeFormat N/A Formatter N/A __init__ N/A N/A self t N/A N/A N/A N/A self data t N/A a N/A N/A self N/A N/A N/A 'a.m.' or 'p.m.' N/A N/A N/A N/A self data hour 11 N/A N/A N/A _ p.m. N/A N/A _ a.m. N/A A N/A N/A self N/A N/A N/A 'AM' or 'PM' N/A N/A N/A N/A self data hour 11 N/A N/A N/A _ PM N/A N/A _ AM N/A B N/A N/A self N/A N/A N/A Swatch Internet time N/A NotImplementedError N/A f N/A N/A self N/A N/A N/A 
        Time, in 12-hour hours and minutes, with minutes left off if they're
        zero.
        Examples: '1', '1:30', '2:05', '2'
        Proprietary extension.
         N/A N/A N/A N/A self data minute 0 N/A N/A N/A N/A self g N/A N/A %s:%s N/A N/A N/A self g N/A N/A self i N/A g N/A N/A self N/A N/A N/A Hour, 12-hour format without leading zeros; i.e. '1' to '12' N/A N/A N/A N/A self data hour 0 N/A N/A 12 N/A N/A N/A N/A self data hour 12 N/A N/A N/A N/A N/A self data hour 12 N/A N/A N/A self data hour N/A G N/A N/A self N/A N/A N/A Hour, 24-hour format without leading zeros; i.e. '0' to '23' N/A N/A N/A self data hour N/A h N/A N/A self N/A N/A N/A Hour, 12-hour format; i.e. '01' to '12' N/A N/A %02d N/A N/A self g N/A H N/A N/A self N/A N/A N/A Hour, 24-hour format; i.e. '00' to '23' N/A N/A %02d N/A N/A self G N/A i N/A N/A self N/A N/A N/A Minutes; i.e. '00' to '59' N/A N/A %02d N/A N/A self data minute N/A P N/A N/A self N/A N/A N/A 
        Time, in 12-hour hours, minutes and 'a.m.'/'p.m.', with minutes left off
        if they're zero and the strings 'midnight' and 'noon' if appropriate.
        Examples: '1 a.m.', '1:30 p.m.', 'midnight', 'noon', '12:30 p.m.'
        Proprietary extension.
         N/A N/A N/A N/A N/A self data minute 0 N/A N/A N/A self data hour 0 N/A N/A N/A _ midnight N/A N/A N/A N/A N/A self data minute 0 N/A N/A N/A self data hour 12 N/A N/A N/A _ noon N/A N/A %s %s N/A N/A N/A self f N/A N/A self a N/A s N/A N/A self N/A N/A N/A Seconds; i.e. '00' to '59' N/A N/A %02d N/A N/A self data second N/A u N/A N/A self N/A N/A N/A Microseconds N/A N/A N/A self data microsecond N/A N/A DateFormat N/A TimeFormat N/A N/A year_days N/A None 0 31 59 90 120 151 181 212 243 273 304 334 __init__ N/A N/A self dt N/A N/A N/A N/A self data dt N/A N/A self timezone N/A getattr dt tzinfo None N/A N/A N/A hasattr N/A self data hour N/A N/A self timezone N/A N/A N/A self timezone N/A LocalTimezone dt N/A b N/A N/A self N/A N/A N/A Month, textual, 3 letters, lowercase; e.g. 'jan' N/A N/A MONTHS_3 N/A N/A N/A self data month N/A c N/A N/A self N/A N/A N/A 
        ISO 8601 Format
        Example : '2008-01-02T10:30:00.000123'
         N/A N/A N/A N/A self data isoformat N/A d N/A N/A self N/A N/A N/A Day of the month, 2 digits with leading zeros; i.e. '01' to '31' N/A N/A %02d N/A N/A self data day N/A D N/A N/A self N/A N/A N/A Day of the week, textual, 3 letters; e.g. 'Fri' N/A N/A WEEKDAYS_ABBR N/A N/A N/A N/A self data weekday N/A E N/A N/A self N/A N/A N/A Alternative month names as required by some locales. Proprietary extension. N/A N/A MONTHS_ALT N/A N/A N/A self data month N/A F N/A N/A self N/A N/A N/A Month, textual, long; e.g. 'January' N/A N/A MONTHS N/A N/A N/A self data month N/A I N/A N/A self N/A N/A N/A '1' if Daylight Savings Time, '0' otherwise. N/A N/A N/A self timezone N/A N/A N/A self timezone dst N/A self data N/A N/A 1 N/A N/A 0 N/A j N/A N/A self N/A N/A N/A Day of the month without leading zeros; i.e. '1' to '31' N/A N/A N/A self data day N/A l N/A N/A self N/A N/A N/A Day of the week, textual, long; e.g. 'Friday' N/A N/A WEEKDAYS N/A N/A N/A N/A self data weekday N/A L N/A N/A self N/A N/A N/A Boolean for whether it is a leap year; i.e. True or False N/A N/A N/A calendar isleap N/A N/A self data year N/A m N/A N/A self N/A N/A N/A Month; i.e. '01' to '12' N/A N/A %02d N/A N/A self data month N/A M N/A N/A self N/A N/A N/A Month, textual, 3 letters; e.g. 'Jan' N/A N/A N/A N/A MONTHS_3 N/A N/A N/A self data month title N/A n N/A N/A self N/A N/A N/A Month without leading zeros; i.e. '1' to '12' N/A N/A N/A self data month N/A N N/A N/A self N/A N/A N/A Month abbreviation in Associated Press style. Proprietary extension. N/A N/A MONTHS_AP N/A N/A N/A self data month N/A O N/A N/A self N/A N/A N/A Difference to Greenwich time in hours; e.g. '+0200' N/A seconds N/A N/A self Z N/A N/A %+03d%02d N/A N/A seconds 3600 N/A N/A seconds 60 60 N/A r N/A N/A self N/A N/A N/A RFC 2822 formatted date; e.g. 'Thu, 21 Dec 2000 16:01:07 +0200' N/A N/A N/A self format D, j M Y H:i:s O N/A S N/A N/A self N/A N/A N/A English ordinal suffix for the day of the month, 2 characters; i.e. 'st', 'nd', 'rd' or 'th' N/A N/A N/A N/A self data day N/A 11 12 13 N/A N/A th N/A last N/A N/A N/A self data day 10 N/A N/A last 1 N/A N/A st N/A N/A last 2 N/A N/A nd N/A N/A last 3 N/A N/A rd N/A th N/A t N/A N/A self N/A N/A N/A Number of days in the given month; i.e. '28' to '31' N/A N/A %02d N/A N/A N/A calendar monthrange N/A N/A self data year N/A N/A self data month N/A 1 N/A T N/A N/A self N/A N/A N/A Time zone of this machine; e.g. 'EST' or 'MDT' N/A name N/A N/A N/A self timezone N/A N/A N/A self timezone tzname N/A self data None N/A N/A name None N/A N/A name N/A N/A self format O N/A N/A unicode name N/A U N/A N/A self N/A N/A N/A Seconds since the Unix epoch (January 1 1970 00:00:00 GMT) N/A N/A getattr N/A self data tzinfo None N/A N/A N/A int N/A N/A calendar timegm N/A N/A N/A self data utctimetuple N/A N/A N/A int N/A N/A time mktime N/A N/A N/A self data timetuple N/A w N/A N/A self N/A N/A N/A Day of the week, numeric, i.e. '0' (Sunday) to '6' (Saturday) N/A N/A N/A N/A N/A N/A self data weekday 1 7 N/A W N/A N/A self N/A N/A N/A ISO-8601 week number of year, weeks starting on Monday N/A week_number None N/A jan1_weekday N/A N/A N/A N/A N/A N/A self data replace month 1 day 1 weekday 1 N/A weekday N/A N/A N/A N/A self data weekday 1 N/A day_of_year N/A N/A self z N/A N/A N/A day_of_year N/A 8 jan1_weekday N/A jan1_weekday 4 N/A N/A N/A N/A jan1_weekday 5 N/A N/A jan1_weekday 6 N/A N/A calendar isleap N/A N/A N/A self data year 1 N/A N/A week_number 53 N/A N/A week_number 52 N/A N/A N/A N/A calendar isleap N/A N/A self data year N/A N/A i 366 N/A N/A i 365 N/A N/A N/A i day_of_year N/A 4 weekday N/A N/A week_number 1 N/A N/A j N/A N/A day_of_year N/A 7 weekday N/A jan1_weekday 1 N/A week_number N/A j 7 N/A N/A jan1_weekday 4 N/A N/A week_number 1 N/A week_number N/A y N/A N/A self N/A N/A N/A Year, 2 digits; e.g. '99' N/A N/A N/A unicode N/A N/A self data year N/A 2 N/A Y N/A N/A self N/A N/A N/A Year, 4 digits; e.g. '1999' N/A N/A N/A self data year N/A z N/A N/A self N/A N/A N/A Day of the year; i.e. '0' to '365' N/A doy N/A N/A N/A self year_days N/A N/A N/A self data month N/A N/A self data day N/A N/A N/A N/A self L N/A N/A N/A self data month 2 N/A N/A doy 1 N/A doy N/A Z N/A N/A self N/A N/A N/A 
        Time zone offset in seconds (i.e. '-43200' to '43200'). The offset for
        timezones west of UTC is always negative, and for those east of UTC is
        always positive.
         N/A N/A N/A self timezone N/A N/A 0 N/A offset N/A N/A N/A self timezone utcoffset N/A self data N/A N/A N/A N/A offset days 86400 N/A offset seconds N/A N/A format N/A N/A value format_string N/A N/A N/A Convenience function N/A df N/A DateFormat value N/A N/A N/A df format format_string N/A time_format N/A N/A value format_string N/A N/A N/A Convenience function N/A tf N/A TimeFormat value N/A N/A N/A tf format format_string N/A