pystare.temporal#
|
|
|
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 |
|
|
|
Intersects tests between temporal index values. |
|
TODO: Not tested |
Converts milliseconds to finer or equal STARE temporal resolution. |
|
|
Construct the three tivs associated with a tiv neighborhood. |
Format the three tivs associated with a tiv neighborhood. |
|
|
Forces 3 digits for the millisecods in an ISO timestamp. |
|
Format the triple-tivs associated with a tiv neighborhood. |
|
|
|
Return a formatted tpod string from a tpod tuple. |
|
Retrieve the forward resolution |
|
Converts an iso strings to STARE temporal index values |
|
Converts two-part Julian Dates (JD) to SIVs. |
|
Converts an integer of milliseconds since unix epoch in UTC to TIV. |
|
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) |
|
Calculate a temporal index value from a low, middle, and high tiv. |
|
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. |
|
|
|
Converts an ISO 8601 timestring to a STARE timestring. |
|
TODO |
|
TODO |
|
Make a tpod tuple of form (tiv_start,resolution). |
|
Returns milliseconds for a given resolution. |
|
Get a tiv representing current point in time. |
|
Parse a formatted tpod string and return a tpod tuple. |
|
Return a list of pod-tuples contained in the query. |
|
Retrieve the reverse resolution |
|
Set the forward resolution of STARE temporal index values |
|
Set the reverse resolution of STARE temporal index values |
|
TODO |
|
Test if indices1 contain the instants in indices2. |
|
Test for overlap, element by element. |
|
Test for overlap, element by element. |
Calculate intersection temporal index value element-by-element if they overlap. |
|
|
Calculate union temporal index value element-by-element if they overlap. |
|
|
|
Return a tiv spanning 2 datetimes in dts. |
|
Example: tiv_from_string('1999-05-05T12:00:00.999') |
|
Example: tiv_from_string(['1999-05-05T12:00:00.999', '1999-05-06T12:00:00.999']) |
|
|
|
|
|
Converts STARE temporal index values to two-part Julian Dates |
|
Converts TIVs into milliseconds since epoch in UTC |
|
Converts a STARE temporal index value to a STARE timestring |
|
Return a terminator for a tpod tuple. |
|
TODO |
|
TODO |
|
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. |