DurationFromColumn / Temporal Layer

Convert integer columns to fixed-duration values, similar to pandas Timedelta or Python's timedelta. Creates exact time intervals unaffected by calendar variations or daylight savings.

Example conversions:

Input ValueDuration UnitTime UnitResult DurationNote
24HoursMs86,400,000 msExactly one day
7DaysMs604,800,000 msExactly one week
60MinutesUs3,600,000,000 μsExactly one hour

Important distinctions:

  • Fixed durations: Always same length (e.g., 24 hours = 1 day always)
  • Calendar durations: Variable length (use offset_by for these)
  • DST-independent: Not affected by timezone changes

Common applications:

  • Scientific measurements
  • Process timing
  • SLA calculations
  • Performance metrics
  • Interval analysis
Table
0
0
Table

Select

column

Integer column to convert to durations. Values represent counts of the specified duration unit (e.g., 24 hours, 7 days).

Ms

Target precision for storing duration values. Affects storage size and resolution of the result.

Ns ~

Nanosecond precision (10⁻⁹ seconds). For high-precision scientific or technical measurements. Maximum range: ~292 years.

Us ~

Microsecond precision (10⁻⁶ seconds). For system-level timing. Maximum range: ~292,000 years.

Ms ~

Millisecond precision (10⁻³ seconds). For general timing needs. Maximum range: ~292 million years.

Hours

Unit interpretation for input integer values. Determines how to convert input numbers into time spans.

Nanoseconds ~

Input represents nanoseconds (10⁻⁹ seconds). For ultra-precise measurements.

Microseconds ~

Input represents microseconds (10⁻⁶ seconds). For system timing analysis.

Milliseconds ~

Input represents milliseconds (10⁻³ seconds). For application response times.

Seconds ~

Input represents seconds. For human-scale timing and basic intervals.

Minutes ~

Input represents minutes. For longer process durations and scheduling.

Hours ~

Input represents hours. For shift lengths and substantial time periods.

Days ~

Input represents days (exactly 24 hours). For multi-day intervals.

Weeks ~

Input represents weeks (exactly 7 days). For long-term fixed periods.

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.