Beispiel #1
0
 def do_get_date(self):
     from gahshomar.khayyam import JalaliDate
     return calendar.glib_strftime(self.date_format, JalaliDate.today())
Beispiel #2
0
 def do_get_day(self):
     from gahshomar.khayyam import JalaliDate
     day = calendar.glib_strftime(_('%d'), JalaliDate.today())
     if day[0] == '۰':
         day = day[1:]
     return day