Relative#

class nominal.ts.Relative(unit: _LiteralTimeUnit, start: datetime | IntegralNanosecondsUTC)#

Bases: _ConjureTimestampType

A relative timestamp in numeric format representing time since some start time. The relative timestamp can be integral or floating point, e.g. 12.123 for 12 seconds and 123 ms after start. The start time is absolute timestamp format representing time since some epoch.

unit: Literal['picoseconds', 'nanoseconds', 'microseconds', 'milliseconds', 'seconds', 'minutes', 'hours', 'days']#
start: datetime | int#

The starting time to which all relatives times are relative to.