paradoxxxzero_butterfly/bin/month
2014-02-06 18:00:51 +01:00

13 lines
367 B
Python
Executable file

#!/usr/bin/env python
from calendar import LocaleHTMLCalendar
from datetime import datetime
import locale
now = datetime.now()
calendar = LocaleHTMLCalendar(locale=locale.getlocale())
calendar_table = calendar.formatmonth(now.year, now.month)
calendar_table = calendar_table.replace('border="0"', 'border="1"')
print('\x1b]99;')
print(calendar_table)
print('\x07')