Go to the documentation of this file. 1 """Some helper classes to convert conditions time units back and forth
4 """pack high,low 32bit unsigned int to one unsigned 64bit long long
5 Note:the print value of result number may appear signed, if the sign bit is used.
11 """pack high,low 32bit unsigned int to one unsigned 64bit long long in string format
12 Note:the print value of result number may appear signed, if the sign bit is used.
15 return fmt%
pack(high,low)
18 """unpack 64bit unsigned long long into 2 32bit unsigned int, return tuple (high,low)
25 """unpack 64bit unsigned long long in string format into 2 32bit unsigned int, return tuple(high,low)
30 """convert 64bit timestamp to local date in string format
33 return time.ctime(
unpack(i)[0])
36 """convert 64bit timestamp to Universal Time in string format
40 return time.strftime(
"%a, %d %b %Y %H:%M:%S +0000",time.gmtime(t))
43 """unpack 64bit lumiid to dictionary {'run','lumisection'}
46 return {
'run':j[0],
'lumisection':j[1]}