eric7/Plugins/VcsPlugins/vcsPySvn/SvnUtilities.py

branch
eric7
changeset 8382
28f7ef365d1b
parent 8318
962bce857696
child 8881
54e42bc2437a
equal deleted inserted replaced
8378:d8b213573638 8382:28f7ef365d1b
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 ( 27 return (
28 QDateTime.fromTime_t(int(seconds)) 28 QDateTime.fromSecsSinceEpoch(int(seconds))
29 .toTimeSpec(Qt.TimeSpec.LocalTime) 29 .toTimeSpec(Qt.TimeSpec.LocalTime)
30 .toString("yyyy-MM-dd hh:mm:ss") 30 .toString("yyyy-MM-dd hh:mm:ss")
31 ) 31 )
32 32
33 33
36 Module function to return the date. 36 Module function to return the date.
37 37
38 @param seconds time in seconds since epoch to be formatted (float or long) 38 @param seconds time in seconds since epoch to be formatted (float or long)
39 @return date (QDate) 39 @return date (QDate)
40 """ 40 """
41 return QDateTime.fromTime_t(int(seconds)).toTimeSpec( 41 return QDateTime.fromSecsSinceEpoch(int(seconds)).toTimeSpec(
42 Qt.TimeSpec.LocalTime).date() 42 Qt.TimeSpec.LocalTime).date()
43 43
44 44
45 def getServersPath(): 45 def getServersPath():
46 """ 46 """

eric ide

mercurial