Time point
A time point represents a specific moment in time, typically expressed as a timestamp value. Unlike relative time which specifies a duration, a time point identifies an exact instant on the timeline.
Time points in LogScale are usually stored as Unix epoch timestamps (milliseconds since January 1, 1970 UTC) but can be formatted and displayed in human-readable formats. They are used for marking specific events, defining absolute time boundaries, or calculating time differences between events.
Time points can be created from timestamp fields, calculated from relative times, or derived from date/time string parsing operations. They serve as the foundation for time-based operations, filtering, and temporal analysis.
Parse String to Time PointparseTimestamp(field=date_string, format="yyyy-MM-dd HH:mm:ss")duration := @timestamp - start_timeformatTime(field=@timestamp, format="yyyy-MM-dd HH:mm:ss")
Functions using this Type:
dropEvent(), eval(), fieldset(), setTimeInterval()