--- a/mod_util.py Tue Aug 18 14:38:54 2015 +0300 +++ b/mod_util.py Wed Aug 26 05:39:23 2015 +0300 @@ -34,6 +34,7 @@ import utility import calc import urllib.parse +import datetime @modulecore.irc_command (args='<value> as <valuetype>') def convert (bot, args, reply, error, **rest): @@ -165,4 +166,8 @@ reply ('\x0f' + result[-1]) else: for line in result: - reply ('\x0f' + line) \ No newline at end of file + reply ('\x0f' + line) + +@modulecore.irc_command (args='<format...>') +def strftime (reply, args, **rest): + reply ('\x0f' + datetime.datetime.utcnow().strftime (args['format']))