def formatTime(t):
if isinstance(t, (float, int)):<EOL><INDENT>return datetime.utcfromtimestamp(t).strftime(timeFormat)<EOL><DEDENT>elif isinstance(t, datetime):<EOL><INDENT>return t.strftime(timeFormat)<EOL><DEDENT>else:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>
Properly Format Time for permlinks