Timestamp / Temporal Layer

Convert datetime values to Unix timestamps (seconds since 1970-01-01 00:00:00 UTC) with specified precision. Similar to datetime.timestamp() or UNIX_TIMESTAMP().

Example conversions:

DateTime (UTC)MillisecondsMicrosecondsNanoseconds
2024-01-15 00:00:00170527680000017052768000000001705276800000000000
1970-01-01 00:00:00000
2024-01-15 12:30:45.123170532184512317053218451234561705321845123456789

Common applications:

  • System interoperability
  • Log file processing
  • Time series analysis
  • Performance measurement
  • Data synchronization
  • Event ordering
Table
0
0
Table

Transforms

[, ...]

Select

column

DateTime column to convert to timestamp. Input timezone affects the result - UTC timestamps are most common for consistency.

Unit

enum
Millisecond

Precision level for timestamp representation. Affects storage size and resolution.

Nanosecond ~

Nanosecond precision (10⁻⁹ seconds). For high-precision scientific or technical measurements. 64-bit range: ~1678-2262.

Microsecond ~

Microsecond precision (10⁻⁶ seconds). For system-level timing. 64-bit range: ~1677-2262.

Millisecond ~

Millisecond precision (10⁻³ seconds). Most common for general use. 64-bit range: ~1677-2262.

Name for the new column. If not provided, the system generates a unique name. If AsColumn matches an existing column, the existing column is replaced. The name should follow valid column naming conventions.