pystare.temporal#
Conversions#
|
Converts an integer of milliseconds since unix epoch in UTC to TIV. |
|
Converts TIVs into milliseconds since epoch in UTC |
Strings#
|
Converts an iso strings to STARE temporal index values |
|
Converts a STARE timestring to a STARE temporal index value The stare timestring is of the form "%Y-%m-%dT%H:%M:%S.%ms (f_res, b_res) (stare_type) |
|
Converts a STARE temporal index value to a STARE timestring |
Julian#
|
Converts two-part Julian Dates (JD) to SIVs. |
|
Converts STARE temporal index values to two-part Julian Dates |
Triples#
|
Calculate a temporal index value from a low, middle, and high tiv. |
Timestring manipulations#
|
Returns 'has_tz' if timestring contains timezone Returns 'no_ms' if timestring does not contain milliseconds Returns 'nat' if timestring is not a ISO8601 timestring Returns 'good' if timestring contains ms but no tz |
|
Test if string is ISO 8601 timestring. |
|
Validate if collection of strings all are ISO8601. |
|
Tests if timestring has shape of STARE timestring, |
|
Validate if collection of strings are STARE timestrings. |
|
Forces 3 digits for the millisecods in an ISO timestamp. |
|
Converts an ISO 8601 timestring to a STARE timestring. |
Resolution functions#
Converts milliseconds to finer or equal STARE temporal resolution. |
|
|
Returns milliseconds for a given resolution. |
|
Set the reverse resolution of STARE temporal index values |
|
Set the forward resolution of STARE temporal index values |
|
Retrieve the reverse resolution |
|
Retrieve the forward resolution |
|
TODO: Not tested |
Overlay functions#
|
Intersects tests between temporal index values. |
Calculate intersection temporal index value element-by-element if they overlap. |
|
|
Calculate union temporal index value element-by-element if they overlap. |
|
Test if indices1 contain the instants in indices2. |
N/A#
|
This function takes an array of datetimes and constructs temporal index values from them with forward and reverse resolutions as given in the arrays passed in. |
|
Get a tiv representing current point in time. |