summaryrefslogtreecommitdiffstats
path: root/bin/news
diff options
context:
space:
mode:
Diffstat (limited to 'bin/news')
-rw-r--r--bin/news5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/news b/bin/news
index 5c4c2bb..09a57f8 100644
--- a/bin/news
+++ b/bin/news
@@ -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)