1234: Add time to the torrents added date - patch from tobbez
This commit is contained in:
parent
e0f2c2473e
commit
9a632fc3d3
|
@ -358,17 +358,17 @@ def ftime(seconds):
|
||||||
|
|
||||||
def fdate(seconds):
|
def fdate(seconds):
|
||||||
"""
|
"""
|
||||||
Formats a date string in the locale's date representation based on the systems timezone
|
Formats a date time string in the locale's date representation based on the systems timezone
|
||||||
|
|
||||||
:param seconds: time in seconds since the Epoch
|
:param seconds: time in seconds since the Epoch
|
||||||
:type seconds: float
|
:type seconds: float
|
||||||
:returns: a string in the locale's date representation or "" if seconds < 0
|
:returns: a string in the locale's datetime representation or "" if seconds < 0
|
||||||
:rtype: string
|
:rtype: string
|
||||||
|
|
||||||
"""
|
"""
|
||||||
if seconds < 0:
|
if seconds < 0:
|
||||||
return ""
|
return ""
|
||||||
return time.strftime("%x", time.localtime(seconds))
|
return time.strftime("%x %X", time.localtime(seconds))
|
||||||
|
|
||||||
def is_url(url):
|
def is_url(url):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue