diff options
Diffstat (limited to 'bin')
-rw-r--r-- | bin/news | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -5,6 +5,7 @@ # Copyright © 2019 Free Software Foundation of India. # +import datetime import os import re import sys @@ -73,6 +74,10 @@ def template(type): return read('templates/{}.html'.format(type)) +def datefmt(d): + return datetime.datetime.strptime(d, '%Y%m%d').strftime('%B %d, %Y') + + def process(f): c = read(f.path) |