spacepy.time.tickrange

spacepy.time.tickrange(start, end, deltadays, dtype=None)[source]

return a Ticktock range given the start, end, and delta

Parameters
startstring or number

start time (ISO standard string and UTC/datetime do not require a dtype)

endstring or number

last possible time in series (excluded unless end=start+n*step for integer n)

deltadaysfloat or timedelta

step in units of days (float); or datetime timedelta object

dtypestring (optional)

data type for start, end; e.g. ISO, UTC, RTD, etc. see Ticktock for all options

Returns
outTicktock instance

ticks

See also

Ticktock

Examples

>>> ticks = st.tickrange('2002-02-01T00:00:00', '2002-02-10T00:00:00', deltadays = 1)
>>> ticks
Ticktock( ['2002-02-01T00:00:00', '2002-02-02T00:00:00', '2002-02-03T00:00:00',
'2002-02-04T00:00:00'] , dtype=ISO)