eric6/Plugins/VcsPlugins/vcsPySvn/SvnUtilities.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8240
93b8a353c4bf
equal deleted inserted replaced
8141:27f636beebad 8143:2c730d5fd177
23 @param seconds time in seconds since epoch to be formatted (float or long) 23 @param seconds time in seconds since epoch to be formatted (float or long)
24 @return formatted time string (string) 24 @return formatted time string (string)
25 """ 25 """
26 return ( 26 return (
27 QDateTime.fromTime_t(int(seconds)) 27 QDateTime.fromTime_t(int(seconds))
28 .toTimeSpec(Qt.LocalTime) 28 .toTimeSpec(Qt.TimeSpec.LocalTime)
29 .toString("yyyy-MM-dd hh:mm:ss") 29 .toString("yyyy-MM-dd hh:mm:ss")
30 ) 30 )
31 31
32 32
33 def dateFromTime_t(seconds): 33 def dateFromTime_t(seconds):
35 Module function to return the date. 35 Module function to return the date.
36 36
37 @param seconds time in seconds since epoch to be formatted (float or long) 37 @param seconds time in seconds since epoch to be formatted (float or long)
38 @return date (QDate) 38 @return date (QDate)
39 """ 39 """
40 return QDateTime.fromTime_t(int(seconds)).toTimeSpec(Qt.LocalTime).date() 40 return QDateTime.fromTime_t(int(seconds)).toTimeSpec(
41 Qt.TimeSpec.LocalTime).date()
41 42
42 43
43 def getServersPath(): 44 def getServersPath():
44 """ 45 """
45 Module function to get the filename of the servers file. 46 Module function to get the filename of the servers file.

eric ide

mercurial