+
K
An interval defined by start and end time.
Intervals are useful for splitting time series in a NodeCollection to time ranges for each interval or for representing results of FoundryTS interval functions such as foundryts.functions.time_series_search().
NodeCollection
foundryts.functions.time_series_search()
Intervals can hold optional metadata.
pandas..Timestamp.min
None
Copied!1 2 3 4 5 6 7 8 >>> from foundryts import Interval >>> interval = Interval(start='2018-01-01', end='2018-02-01', name='january', metadata={'days': 31}) >>> interval Interval(start='2018-01-01 00:00:00', end='2018-02-01 00:00:00', name='january', metadata={'days': 31}) >>> interval.name 'january' >>> interval.metadata['days'] 31
1 2 3 4 5 6 7 8
>>> from foundryts import Interval >>> interval = Interval(start='2018-01-01', end='2018-02-01', name='january', metadata={'days': 31}) >>> interval Interval(start='2018-01-01 00:00:00', end='2018-02-01 00:00:00', name='january', metadata={'days': 31}) >>> interval.name 'january' >>> interval.metadata['days'] 31
End time as codex_core.Timestamp.
codex_core.Timestamp
Copy of Interval.end() which will be migrated to return Python native, non-codex Conjure types in the future.
Interval.end()
End time as int | datetime | str
int | datetime | str
End time in nanoseconds.
Return metadata dictionary.
Name of the interval.
Start time as codex_core.Timestamp.
Copy of Interval.start() which will be migrated to return Python native, non-codex Conjure types in the future.
Interval.start()
Start time as int | datetime | str
Start time in nanoseconds.