Skip to contents

Converts an R date-time to an ISO 8601 UTC timestamp with millisecond precision, suitable for the eventTime field of an OpenLineage event.

Usage

new_event_time(time = Sys.time())

Arguments

time

A single, non-missing POSIXct or POSIXlt value. Defaults to the current time.

Value

A single UTC timestamp string.

Examples

time <- as.POSIXct("2026-01-02 03:04:05", tz = "UTC")
new_event_time(time)
#> [1] "2026-01-02T03:04:05.000Z"