Public Member Functions | |
def | __init__ |
def | DatetimeToStr |
def | LSDuration |
return datetime.fromtimestamp(ts,tz=pytz.utc) return datetime.utcfromtimestamp(ts) More... | |
def | OrbitDuration |
def | OrbitToLocalTimestamp |
def | OrbitToTime |
def | OrbitToTimeStr |
def | OrbitToUTCTimestamp |
def | StrToDatetime |
Public Attributes | |
bunchspace_s | |
bunchspace_us | |
coraltimefm | |
nbx | |
orbits_per_ls | |
pydatetimefm | |
Definition at line 4 of file lumiTime.py.
def lumiTime.lumiTime.__init__ | ( | self | ) |
Definition at line 5 of file lumiTime.py.
def lumiTime.lumiTime.DatetimeToStr | ( | self, | |
timeValue, | |||
customfm = '' |
|||
) |
convert python datetime to string timestamp
Definition at line 64 of file lumiTime.py.
References lumiTime.lumiTime.pydatetimefm.
Referenced by lumiTime.lumiTime.OrbitToTimeStr().
def lumiTime.lumiTime.LSDuration | ( | self | ) |
return datetime.fromtimestamp(ts,tz=pytz.utc) return datetime.utcfromtimestamp(ts)
Definition at line 17 of file lumiTime.py.
References lumiTime.lumiTime.OrbitDuration(), and lumiTime.lumiTime.orbits_per_ls.
def lumiTime.lumiTime.OrbitDuration | ( | self, | |
norbits = 1 |
|||
) |
Definition at line 20 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 35 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 29 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 23 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 44 of file lumiTime.py.
References lumiTime.lumiTime.OrbitToTime().
def lumiTime.lumiTime.StrToDatetime | ( | self, | |
strTime, | |||
customfm = '' |
|||
) |
convert string timestamp to python datetime
Definition at line 52 of file lumiTime.py.
References lumiTime.lumiTime.pydatetimefm.
Referenced by lumiTime.lumiTime.OrbitToTime(), and lumiTime.lumiTime.OrbitToTimeStr().
lumiTime.lumiTime.bunchspace_s |
Definition at line 11 of file lumiTime.py.
lumiTime.lumiTime.bunchspace_us |
Definition at line 10 of file lumiTime.py.
Referenced by lumiTime.lumiTime.OrbitDuration().
lumiTime.lumiTime.coraltimefm |
Definition at line 6 of file lumiTime.py.
lumiTime.lumiTime.nbx |
Definition at line 8 of file lumiTime.py.
Referenced by lumiTime.lumiTime.OrbitDuration().
lumiTime.lumiTime.orbits_per_ls |
Definition at line 9 of file lumiTime.py.
Referenced by lumiTime.lumiTime.LSDuration().
lumiTime.lumiTime.pydatetimefm |
Definition at line 7 of file lumiTime.py.
Referenced by lumiTime.lumiTime.DatetimeToStr(), and lumiTime.lumiTime.StrToDatetime().