IsLeapYear / Temporal Layer

Determine if dates fall in leap years, similar to Python's calendar.isleap(). Returns boolean values indicating leap year status.

Leap Year Rules:

  1. Year divisible by 4 is leap year
  2. Century years (divisible by 100) are not leap years
  3. Exception: Years divisible by 400 are leap years

Example evaluations:

Input DateIs Leap Year
2024-01-15true
2023-12-31false
2000-06-30true
2100-01-01false

Common applications:

  • Calendar calculations
  • Date interval processing
  • Financial year analysis
  • Schedule planning
  • Date validation
Table
0
0
Table

Transforms

[, ...]

Select

column

Date or datetime column to check for leap years. Input can be:

  • Date values (2024-01-15)
  • Datetime values (2024-01-15 14:30:00)
  • Timestamps with timezone Only the year component is considered.

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.