Friday, 15 July 2016

Python: Calendar: day_abbr: get abbreviated day names of the week


'calendar.day_abbr' returns an array that contains abbreviated day names of the week in current locale.
>>> import calendar
>>> for day in calendar.day_abbr:
...     print(day)
... 
Mon
Tue
Wed
Thu
Fri
Sat
Sun


Previous                                                 Next                                                 Home

No comments:

Post a Comment