##// END OF EJS Templates
util: fix doc for datestr()...
Adrian Buehlmann -
r28826:59dd920c default
parent child Browse files
Show More
@@ -1582,8 +1582,7 b' def makedate(timestamp=None):'
1582 def datestr(date=None, format='%a %b %d %H:%M:%S %Y %1%2'):
1582 def datestr(date=None, format='%a %b %d %H:%M:%S %Y %1%2'):
1583 """represent a (unixtime, offset) tuple as a localized time.
1583 """represent a (unixtime, offset) tuple as a localized time.
1584 unixtime is seconds since the epoch, and offset is the time zone's
1584 unixtime is seconds since the epoch, and offset is the time zone's
1585 number of seconds away from UTC. if timezone is false, do not
1585 number of seconds away from UTC."""
1586 append time zone to string."""
1587 t, tz = date or makedate()
1586 t, tz = date or makedate()
1588 if "%1" in format or "%2" in format or "%z" in format:
1587 if "%1" in format or "%2" in format or "%z" in format:
1589 sign = (tz > 0) and "-" or "+"
1588 sign = (tz > 0) and "-" or "+"
General Comments 0
You need to be logged in to leave comments. Login now