DurationSinceUnixEpoch / Temporal Layer

Calculate duration between datetime values and Unix epoch (1970-01-01 00:00:00 UTC) in specified precision. Similar to Python's datetime.timestamp() but with flexible precision options.

Example durations:

DateTime (UTC)UnitDurationNote
1970-01-01 00:00:00ms0Epoch start
1970-01-01 00:00:01ms1,000One second
2024-01-15 12:00:00ms1,705,320,000,000Recent date
1969-12-31 23:59:59ms-1,000Pre-epoch

Key concepts:

  • Positive values: Times after epoch
  • Negative values: Times before epoch
  • Precision affects number size
  • UTC-based calculation

Common applications:

  • System timestamps
  • Time difference calculations
  • Event sequencing
  • Data synchronization
  • Performance measurement
  • Historical analysis
Table
0
0
Table

Transforms

[, ...]

Select

column

DateTime column to measure from epoch. Values should be UTC or explicitly timezone-aware for consistent results. Non-UTC times are converted to UTC before calculation.

Unit

enum
Millisecond

Precision level for duration measurement. Higher precision produces larger numbers but allows finer time resolution.

Millisecond ~

Millisecond precision (10⁻³ seconds). Common for:

  • Web applications
  • Database timestamps
  • User interaction timing Range: ±292 million years from epoch
Microsecond ~

Microsecond precision (10⁻⁶ seconds). Suitable for:

  • System performance analysis
  • High-resolution logging
  • Process timing Range: ±292,000 years from epoch
Nanosecond ~

Nanosecond precision (10⁻⁹ seconds). Used for:

  • Scientific measurements
  • Hardware timing
  • Ultra-precise intervals Range: ±292 years from epoch

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.