eric6/Plugins/VcsPlugins/vcsPySvn/SvnUtilities.py

changeset 7260
4cc6f121119a
parent 7229
53054eb5b15a
child 7360
9190402e4505
equal deleted inserted replaced
7259:7c017076c12e 7260:4cc6f121119a
22 Module function to return a formatted time string. 22 Module function to return a formatted time string.
23 23
24 @param seconds time in seconds since epoch to be formatted (float or long) 24 @param seconds time in seconds since epoch to be formatted (float or long)
25 @return formatted time string (string) 25 @return formatted time string (string)
26 """ 26 """
27 return QDateTime.fromTime_t(int(seconds))\ 27 return (
28 .toTimeSpec(Qt.LocalTime)\ 28 QDateTime.fromTime_t(int(seconds))
29 .toString("yyyy-MM-dd hh:mm:ss") 29 .toTimeSpec(Qt.LocalTime)
30 .toString("yyyy-MM-dd hh:mm:ss")
31 )
30 32
31 33
32 def dateFromTime_t(seconds): 34 def dateFromTime_t(seconds):
33 """ 35 """
34 Module function to return the date. 36 Module function to return the date.

eric ide

mercurial