Пример #1
0
 def timestamp_attrfuncs(self):
     return dict(
         year=None,
         month=None,
         day=None,
         hour=None,
         minute=None,
         second=None,
         weekdayname=lambda t: weekdayname(t.weekday(), dt=True),
         weekdayname_long=lambda t: weekdayname_long(t.weekday(), dt=True),
         monthname=lambda t: monthname(t.month),
         monthname_long=lambda t: monthname_long(t.month))
Пример #2
0
 def timestamp_attrfuncs(self):
     return dict(
         year=None,
         month=None,
         day=None,
         hour=None,
         minute=None,
         second=None,
         weekdayname=lambda t: weekdayname(t.weekday(), dt=True),
         weekdayname_long=lambda t: weekdayname_long(t.weekday(), dt=True),
         monthname=lambda t: monthname(t.month),
         monthname_long=lambda t: monthname_long(t.month)
     )
Пример #3
0
def rss_format(t):
    return template_rss.format(
        weekdayname(t.weekday(), dt=True),
        t,
        monthname(t.month)
    )
Пример #4
0
def rss_format(t):
    return template_rss.format(weekdayname(t.weekday(), dt=True), t,
                               monthname(t.month))