Public Member Functions | |
def | __init__ (self) |
def | DatetimeToStr (self, timeValue, customfm='') |
def | LSDuration (self) |
return datetime.fromtimestamp(ts,tz=pytz.utc) return datetime.utcfromtimestamp(ts) More... | |
def | OrbitDuration (self, norbits=1) |
def | OrbitToLocalTimestamp (self, begStrTime, orbitnumber, begorbit=0, customfm='') |
def | OrbitToTime (self, begStrTime, orbitnumber, begorbit=0, customfm='') |
def | OrbitToTimeStr (self, begStrTime, orbitnumber, begorbit=0, customfm='') |
def | OrbitToUTCTimestamp (self, begStrTime, orbitnumber, begorbit=0, customfm='') |
def | StrToDatetime (self, strTime, customfm='') |
Public Attributes | |
bunchspace_s | |
bunchspace_us | |
coraltimefm | |
nbx | |
orbits_per_ls | |
pydatetimefm | |
Definition at line 5 of file lumiTime.py.
def lumiTime.lumiTime.__init__ | ( | self | ) |
Definition at line 6 of file lumiTime.py.
def lumiTime.lumiTime.DatetimeToStr | ( | self, | |
timeValue, | |||
customfm = '' |
|||
) |
convert python datetime to string timestamp
Definition at line 65 of file lumiTime.py.
References edm.print(), lumiTime.lumiTime.pydatetimefm, and str.
Referenced by lumiTime.lumiTime.OrbitToTimeStr().
def lumiTime.lumiTime.LSDuration | ( | self | ) |
return datetime.fromtimestamp(ts,tz=pytz.utc) return datetime.utcfromtimestamp(ts)
Definition at line 18 of file lumiTime.py.
References lumiTime.lumiTime.OrbitDuration(), and lumiTime.lumiTime.orbits_per_ls.
def lumiTime.lumiTime.OrbitDuration | ( | self, | |
norbits = 1 |
|||
) |
Definition at line 21 of file lumiTime.py.
References lumiTime.lumiTime.bunchspace_us, and lumiTime.lumiTime.nbx.
Referenced by lumiTime.lumiTime.LSDuration(), lumiTime.lumiTime.OrbitToTime(), and lumiTime.lumiTime.OrbitToTimeStr().
def lumiTime.lumiTime.OrbitToLocalTimestamp | ( | self, | |
begStrTime, | |||
orbitnumber, | |||
begorbit = 0 , |
|||
customfm = '' |
|||
) |
given a orbit number, return its corresponding unixtimestamp. Default run begin time counting from orbit=0
Definition at line 36 of file lumiTime.py.
References lumiTime.lumiTime.OrbitToTime().
def lumiTime.lumiTime.OrbitToTime | ( | self, | |
begStrTime, | |||
orbitnumber, | |||
begorbit = 0 , |
|||
customfm = '' |
|||
) |
given a orbit number, return its corresponding time. Default run begin time counting from orbit=0
Definition at line 30 of file lumiTime.py.
References lumiTime.lumiTime.OrbitDuration(), and lumiTime.lumiTime.StrToDatetime().
Referenced by lumiTime.lumiTime.OrbitToLocalTimestamp(), and lumiTime.lumiTime.OrbitToUTCTimestamp().
def lumiTime.lumiTime.OrbitToTimeStr | ( | self, | |
begStrTime, | |||
orbitnumber, | |||
begorbit = 0 , |
|||
customfm = '' |
|||
) |
given a orbit number, return its corresponding time. Assuming begin time has orbit=0
Definition at line 24 of file lumiTime.py.
References lumiTime.lumiTime.DatetimeToStr(), lumiTime.lumiTime.OrbitDuration(), and lumiTime.lumiTime.StrToDatetime().
def lumiTime.lumiTime.OrbitToUTCTimestamp | ( | self, | |
begStrTime, | |||
orbitnumber, | |||
begorbit = 0 , |
|||
customfm = '' |
|||
) |
given a orbit number, return its corresponding unixtimestamp. Default run begin time counting from orbit=0
Definition at line 45 of file lumiTime.py.
References lumiTime.lumiTime.OrbitToTime().
def lumiTime.lumiTime.StrToDatetime | ( | self, | |
strTime, | |||
customfm = '' |
|||
) |
convert string timestamp to python datetime
Definition at line 53 of file lumiTime.py.
References edm.print(), lumiTime.lumiTime.pydatetimefm, and str.
Referenced by lumiTime.lumiTime.OrbitToTime(), and lumiTime.lumiTime.OrbitToTimeStr().
lumiTime.lumiTime.bunchspace_s |
Definition at line 12 of file lumiTime.py.
lumiTime.lumiTime.bunchspace_us |
Definition at line 11 of file lumiTime.py.
Referenced by lumiTime.lumiTime.OrbitDuration().
lumiTime.lumiTime.coraltimefm |
Definition at line 7 of file lumiTime.py.
lumiTime.lumiTime.nbx |
Definition at line 9 of file lumiTime.py.
Referenced by lumiTime.lumiTime.OrbitDuration().
lumiTime.lumiTime.orbits_per_ls |
Definition at line 10 of file lumiTime.py.
Referenced by lumiTime.lumiTime.LSDuration().
lumiTime.lumiTime.pydatetimefm |
Definition at line 8 of file lumiTime.py.
Referenced by lumiTime.lumiTime.DatetimeToStr(), and lumiTime.lumiTime.StrToDatetime().