Skip to content
truncateNanoseconds: Truncate nanoseconds since the Unix epoch to the precision a store can actually hold.
fromDotNetTicks: Convert .NET DateTime.Ticks back to an ISO 8601 instant string.
fromExcelSerial: Convert an Excel day serial back to an ISO 8601 instant string.
fromFileTime: Convert a Windows FILETIME back to an ISO 8601 instant string.
fromNanoseconds: Convert nanoseconds since the Unix epoch back to an ISO 8601 string.
fromNtpTimestamp: Convert a 64-bit NTP timestamp (RFC 5905) back to an ISO 8601 instant string.
fromPgMicroseconds: Convert PostgreSQL’s internal timestamptz value back to an ISO 8601 instant string.
toDotNetTicks: Convert an ISO 8601 instant string to .NET DateTime.Ticks.
toExcelSerial: Convert an ISO 8601 instant string to an Excel day serial.
toFileTime: Convert an ISO 8601 instant string to a Windows FILETIME.
toNanoseconds: Convert an ISO 8601 instant string to nanoseconds since the Unix epoch.
toNtpTimestamp: Convert an ISO 8601 instant string to a 64-bit NTP timestamp (RFC 5905).
toPgMicroseconds: Convert an ISO 8601 instant string to PostgreSQL’s internal timestamptz value.
formatNanoseconds: Format nanoseconds since the Unix epoch as a decimal string, for JSON and other text transports.
parseNanoseconds: Parse a decimal string produced by formatNanoseconds — typically one field of a JSON payload — back to nanoseconds since the Unix epoch.
isValidInstant: Validate whether a string is an ISO 8601 instant string the precision/ namespace accepts.
isValidNanoPattern: Validate whether a string is a nanosecond timestamp parseNanoseconds will parse.
isValidNanoseconds: Validate whether a value is an epoch-nanosecond bigint the precision/ namespace accepts.