mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +01:00
Fix af24192b0f
(support for struct_time in utils.str.timestamp).
This commit is contained in:
parent
ca425b7b0a
commit
70ad232887
@ -374,7 +374,7 @@ registerChannelValue(supybot.reply.format, 'time',
|
||||
def timestamp(t):
|
||||
if t is None:
|
||||
t = time.time()
|
||||
elif isinstance(t, int):
|
||||
elif isinstance(t, float):
|
||||
t = time.localtime(t)
|
||||
format = get(supybot.reply.format.time, dynamic.channel)
|
||||
return time.strftime(format, t)
|
||||
|
Loading…
Reference in New Issue
Block a user