semantique.time_instant#
- semantique.time_instant(x, **kwargs)[source]#
Time instant.
Object representing a single time instant. Can be used to apply a temporal filter to an array.
- Parameters:
x – A time instant formatted as an object that can be understood by the initializer of
TemporalExtent
. This includespandas.Timestamp
objects, as well as text representations of time instants in different formats.**kwargs – Additional keyword arguments passed on to the initializer of
TemporalExtent
.
- Returns:
dict
– JSON-serializable object that contains the time instant, and can be understood by the query processor as such.
Examples
>>> import semantique as sq >>> sq.time_instant("2021-12-31")