# Module /chrono

High-precision clocks (Steady-Clock), civil dates/times (Date, Time, Date-Time), UTC Instants, IANA Zoned-Date-Time, and Duration/Span arithmetic powered by jiff.

```tangu
(use /chrono)
```

## Functions & symbols

### !=

`(!= left right) -> Bool`

Returns `true` if two temporal values, durations, or spans are unequal.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `left` | `Date | Time | Date-Time | Instant | Steady-Instant | Zoned-Date-Time | Duration | Span` | no | Left temporal value or duration |
| `right` | `Any` | no | Comparable temporal value or duration |

```tangu
(!= (Date 2026 3 15) (Date 2026 3 20))
```

### +

`(+ temporal delta) -> Temporal`

Adds a `Duration` or `Span` to a temporal point, or sums two durations/spans.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `temporal` | `Date | Time | Date-Time | Instant | Steady-Instant | Zoned-Date-Time | Duration | Span` | no | Base temporal point or duration |
| `delta` | `Span | Duration | Temporal` | no | Delta duration/span or second instant for difference |

```tangu
(+ (Date 2026 5 1) (chrono/days 7))
```

### -

`(- temporal delta) -> Temporal`

Subtracts a `Duration` or `Span` from a temporal point, or computes the elapsed duration/span between two points.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `temporal` | `Date | Time | Date-Time | Instant | Steady-Instant | Zoned-Date-Time | Duration | Span` | no | Base temporal point or duration |
| `delta` | `Span | Duration | Temporal` | no | Delta duration/span or second instant for difference |

```tangu
(- (Date 2026 5 10) (Date 2026 5 1))
```

### <

`(< left right) -> Bool`

Returns `true` if `left` occurs chronologically before (or is shorter than) `right`.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `left` | `Date | Time | Date-Time | Instant | Steady-Instant | Zoned-Date-Time | Duration | Span` | no | Left temporal value or duration |
| `right` | `Any` | no | Comparable temporal value or duration |

```tangu
(< (Date 2026 3 15) (Date 2026 3 20))
```

### <=

`(<= left right) -> Bool`

Returns `true` if `left` occurs before or at the same instant as `right`.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `left` | `Date | Time | Date-Time | Instant | Steady-Instant | Zoned-Date-Time | Duration | Span` | no | Left temporal value or duration |
| `right` | `Any` | no | Comparable temporal value or duration |

```tangu
(<= (Date 2026 3 15) (Date 2026 3 20))
```

### ==

`(== left right) -> Bool`

Returns `true` if two temporal values, durations, or spans are equal.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `left` | `Date | Time | Date-Time | Instant | Steady-Instant | Zoned-Date-Time | Duration | Span` | no | Left temporal value or duration |
| `right` | `Any` | no | Comparable temporal value or duration |

```tangu
(== (Date 2026 3 15) (Date 2026 3 20))
```

### >

`(> left right) -> Bool`

Returns `true` if `left` occurs chronologically after (or is longer than) `right`.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `left` | `Date | Time | Date-Time | Instant | Steady-Instant | Zoned-Date-Time | Duration | Span` | no | Left temporal value or duration |
| `right` | `Any` | no | Comparable temporal value or duration |

```tangu
(> (Date 2026 3 15) (Date 2026 3 20))
```

### >=

`(>= left right) -> Bool`

Returns `true` if `left` occurs after or at the same instant as `right`.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `left` | `Date | Time | Date-Time | Instant | Steady-Instant | Zoned-Date-Time | Duration | Span` | no | Left temporal value or duration |
| `right` | `Any` | no | Comparable temporal value or duration |

```tangu
(>= (Date 2026 3 15) (Date 2026 3 20))
```

### Date

`(Date year month day) -> Date`

Constructs a civil calendar `Date` without time-of-day or timezone.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `year_or_str` | `Int | String | Map` | no | Calendar year, ISO-8601 date string (`"2026-03-15"`), or fields map |
| `month` | `Int` | yes | Month of year (1–12) |
| `day` | `Int` | yes | Day of month (1–31) |

```tangu
(Date 2026 5 1)
```

### Date-Time

`(Date-Time date time) -> Date-Time`

Constructs a civil `Date-Time` combining date and time without timezone offset.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `date_or_year` | `Date | Int | String` | no | Civil Date, year Int, or ISO-8601 datetime string |
| `time_or_month` | `Time | Int` | yes | Civil Time or month Int |

```tangu
(Date-Time 2026 5 1 9 0 0)
```

### Date-Time/local

`(Date-Time/local) -> Date-Time`

Returns the current civil `Date-Time` in the system's local timezone.

```tangu
(Date-Time/local)
```

### Date-Time/utc

`(Date-Time/utc) -> Date-Time`

Returns the current civil `Date-Time` in UTC.

```tangu
(Date-Time/utc)
```

### Date/local

`(Date/local) -> Date`

Returns today's civil `Date` in the system's local timezone.

```tangu
(Date/local)
```

### Date/utc

`(Date/utc) -> Date`

Returns today's civil `Date` in UTC.

```tangu
(Date/utc)
```

### Duration

`(Duration :seconds s :nanos ns ...) -> Duration`

Constructs an exact physical `Duration` (fixed hours/minutes/seconds/subseconds).

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `args` | `KeySymbol | Int | String | Map` | no | Key-value unit pairs (:hours, :minutes, :seconds, :millis, :micros, :nanos) or ISO-8601 duration string |

```tangu
(Duration :minutes 5 :seconds 30)
```

### Instant

`(Instant) -> Instant`

Constructs an exact physical UTC `Instant` on the Unix epoch timeline (defaults to current time).

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `value` | `Int | String | Map` | yes | Optional Unix epoch seconds, RFC 3339 string, or {:millis ... :nanos ...} map |

```tangu
(Instant)
(Instant "2026-05-01T12:00:00Z")
```

### Span

`(Span :years y :months m :days d ...) -> Span`

Constructs a calendar-aware `Span` supporting variable-length units like years, months, and weeks.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `args` | `KeySymbol | Int | String | Map` | no | Key-value unit pairs (:years, :months, :weeks, :days, :hours, :minutes, :seconds, ...) or ISO-8601 span string |

```tangu
(Span :months 1 :days 5)
```

### Steady-Clock/elapsed

`(Steady-Clock/elapsed since) -> Duration`

Returns the exact elapsed `Duration` since `since`.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `since` | `Steady-Instant` | no | Earlier Steady-Instant captured via Steady-Clock/now |

```tangu
(let dt (Steady-Clock/elapsed start))
```

### Steady-Clock/measure

`(Steady-Clock/measure func) -> Map`

Executes `func` and returns `{:value result :duration elapsed-duration}`.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `func` | `Func` | no | Zero-argument function to benchmark |

```tangu
(let res (Steady-Clock/measure (Func () (work))))
```

### Steady-Clock/now

`(Steady-Clock/now) -> Steady-Instant`

Captures the current reading of the host monotonic high-resolution clock.

```tangu
(let start (Steady-Clock/now))
```

### Steady-Instant

`(Steady-Instant) -> Steady-Instant`

Captures a monotonic clock reading immune to system wall-clock adjustments.

```tangu
(let t0 (Steady-Clock/now))
```

### Time

`(Time hour minute [second [nanosecond]]) -> Time`

Constructs a civil wall-clock `Time` without date or timezone.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `hour_or_str` | `Int | String | Map` | no | Hour (0–23), ISO-8601 time string, or fields map |
| `minute` | `Int` | yes | Minute (0–59) |
| `second` | `Int` | yes | Optional second (0–59) |
| `nanosecond` | `Int` | yes | Optional nanosecond (0–999_999_999) |

```tangu
(Time 14 30 0)
```

### Time/local

`(Time/local) -> Time`

Returns the current wall-clock `Time` in the system's local timezone.

```tangu
(Time/local)
```

### Time/utc

`(Time/utc) -> Time`

Returns the current wall-clock `Time` in UTC.

```tangu
(Time/utc)
```

### Zoned-Date-Time

`(Zoned-Date-Time) -> Zoned-Date-Time`

Constructs a timezone-aware `Zoned-Date-Time` referencing an IANA timezone database zone.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `target` | `String | Instant | Date-Time` | yes | RFC 9557 string or temporal value to project |
| `timezone` | `String` | yes | IANA timezone name (e.g. "America/New_York", "UTC") |
| `disambiguation` | `KeySymbol` | yes | Optional DST disambiguation (:compatible, :earlier, :later, :reject) |

```tangu
(Zoned-Date-Time (Instant) "Europe/Athens")
```

### Zoned-Date-Time/in

`(Zoned-Date-Time/in timezone) -> Zoned-Date-Time`

Returns the current wall time in the specified IANA `timezone`.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `timezone` | `String` | no | IANA timezone identifier |

```tangu
(Zoned-Date-Time/in "Asia/Tokyo")
```

### Zoned-Date-Time/local

`(Zoned-Date-Time/local) -> Zoned-Date-Time`

Returns the current `Zoned-Date-Time` in the host OS timezone.

```tangu
(Zoned-Date-Time/local)
```

### Zoned-Date-Time/utc

`(Zoned-Date-Time/utc) -> Zoned-Date-Time`

Returns the current `Zoned-Date-Time` in UTC.

```tangu
(Zoned-Date-Time/utc)
```

### age

`(age birth-date [reference-date]) -> Span`

Computes exact human calendar age between `birth_date` and `reference` as a balanced `Span`.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `birth_date` | `Date | Date-Time | Zoned-Date-Time` | no | Start date |
| `reference` | `Date | Date-Time | Zoned-Date-Time` | yes | Reference date (defaults to today UTC) |

```tangu
(age (Date 1995 6 15) (Date 2026 6 15))
```

### date-diff

`(date-diff start end [options]) -> Span`

Computes the calendar/time difference between two temporal points as a `Span`.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `start` | `Date | Time | Date-Time | Instant | Zoned-Date-Time` | no | Start temporal point |
| `end` | `Date | Time | Date-Time | Instant | Zoned-Date-Time` | no | End temporal point |
| `options` | `Map` | yes | Optional {:largest :unit :smallest :unit} |

```tangu
(date-diff (Date 2026 1 1) (Date 2026 3 1))
```

### date-round

`(date-round unit temporal [options]) -> Temporal`

Rounds a temporal value to `unit` with optional increment and rounding mode.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `unit` | `KeySymbol | String` | no | Smallest target unit (:day, :hour, :minute, :second, :millis, ...) |
| `temporal` | `Time | Date-Time | Instant | Zoned-Date-Time` | no | Temporal value to round |
| `options` | `Map` | yes | Rounding options {:mode :half-expand :increment 1} |

```tangu
(date-round :minute (Instant))
```

### date-trunc

`(date-trunc unit temporal) -> Temporal`

Truncates smaller components of `temporal` down to the start of `unit`.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `unit` | `KeySymbol | String` | no | Truncation unit (:year, :month, :day, :hour, :minute, :second) |
| `temporal` | `Date | Time | Date-Time | Zoned-Date-Time | Instant` | no | Temporal value to truncate |

```tangu
(date-trunc :day (Date-Time/utc))
```

### day-of-week

`(day-of-week date) -> Int`

Returns the 1-based Monday-indexed day of the week (1 = Monday .. 7 = Sunday).

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `date` | `Date | Date-Time | Zoned-Date-Time` | no | Date or datetime to inspect |

```tangu
(day-of-week (Date 2026 5 1))
```

### day-of-week-iso

`(day-of-week-iso date) -> Int`

Returns the ISO-8601 weekday number (1 = Monday through 7 = Sunday).

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `date` | `Date | Date-Time | Zoned-Date-Time` | no | Date or datetime to inspect |

```tangu
(day-of-week-iso (Date/utc))
```

### day-of-week-symbol

`(day-of-week-symbol date) -> KeySymbol`

Returns the weekday as a KeySymbol (`:mon`, `:tue`, `:wed`, `:thu`, `:fri`, `:sat`, `:sun`).

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `date` | `Date | Date-Time | Zoned-Date-Time` | no | Date or datetime to inspect |

```tangu
(day-of-week-symbol (Date 2026 5 1))
```

### day-of-year

`(day-of-year date) -> Int`

Returns the ordinal day within the year (1–365 or 1–366).

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `date` | `Date | Date-Time | Zoned-Date-Time` | no | Date or datetime to inspect |

```tangu
(day-of-year (Date 2026 12 31))
```

### days

`(days n) -> Span`

Constructs a calendar/clock `Span` representing `n` calendar days.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `n` | `Int` | no | Number of calendar days |

```tangu
(+ (Date 2026 1 1) (days 2))
```

### epoch-millis-of

`(epoch-millis-of instant) -> Int`

Extracts Unix epoch milliseconds from a temporal value.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `temporal` | `Instant | Zoned-Date-Time | Date-Time` | no | Temporal value |

```tangu
(epoch-millis-of (Instant))
```

### epoch-nanos-of

`(epoch-nanos-of instant) -> Int`

Extracts Unix epoch nanoseconds from a temporal value.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `temporal` | `Instant | Zoned-Date-Time | Date-Time` | no | Temporal value |

```tangu
(epoch-nanos-of (Instant))
```

### epoch-seconds-of

`(epoch-seconds-of instant) -> Int`

Extracts whole Unix epoch seconds from a temporal value.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `temporal` | `Instant | Zoned-Date-Time | Date-Time` | no | Temporal value |

```tangu
(epoch-seconds-of (Instant))
```

### format-date

`(format-date temporal pattern) -> String`

Formats a temporal value using a `strftime`-compatible pattern string.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `temporal` | `Date | Time | Date-Time | Zoned-Date-Time | Instant` | no | Temporal value to format |
| `pattern` | `String` | no | strftime-compatible format string (e.g. "%Y-%m-%d %H:%M") |

```tangu
(format-date (Date 2026 5 1) "%Y-%m-%d")
```

### get-epoch-millis

`(get-epoch-millis) -> Int`

Returns the current UTC Unix timestamp in milliseconds.

```tangu
(get-epoch-millis)
```

### get-epoch-nanos

`(get-epoch-nanos) -> Int`

Returns the current UTC Unix timestamp in nanoseconds.

```tangu
(get-epoch-nanos)
```

### get-epoch-seconds

`(get-epoch-seconds) -> Int`

Returns the current UTC Unix timestamp in whole seconds.

```tangu
(get-epoch-seconds)
```

### hours

`(hours n) -> Span`

Constructs a calendar/clock `Span` representing `n` hours.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `n` | `Int` | no | Number of hours |

```tangu
(+ (Date 2026 1 1) (hours 2))
```

### is-leap-year?

`(is-leap-year? date-or-year) -> Bool`

Returns `true` if the year is a Gregorian leap year.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `target` | `Date | Date-Time | Zoned-Date-Time | Int` | no | Temporal value or 4-digit year integer |

```tangu
(is-leap-year? 2024) ; -> true
```

### is-weekday?

`(is-weekday? date) -> Bool`

Returns `true` when `date` falls Monday through Friday.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `date` | `Date | Date-Time | Zoned-Date-Time` | no | Date to check |

```tangu
(is-weekday? (Date/local))
```

### is-weekend?

`(is-weekend? date) -> Bool`

Returns `true` when `date` falls on Saturday or Sunday.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `date` | `Date | Date-Time | Zoned-Date-Time` | no | Date to check |

```tangu
(is-weekend? (Date/local))
```

### micros

`(micros n) -> Duration`

Constructs an exact signed `Duration` representing `n` microseconds.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `n` | `Int` | no | Number of microseconds |

```tangu
(+ (Instant) (micros 30))
```

### millis

`(millis n) -> Duration`

Constructs an exact signed `Duration` representing `n` milliseconds.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `n` | `Int` | no | Number of milliseconds |

```tangu
(+ (Instant) (millis 30))
```

### minutes

`(minutes n) -> Span`

Constructs a calendar/clock `Span` representing `n` minutes.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `n` | `Int` | no | Number of minutes |

```tangu
(+ (Date 2026 1 1) (minutes 2))
```

### months

`(months n) -> Span`

Constructs a calendar/clock `Span` representing `n` calendar months.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `n` | `Int` | no | Number of calendar months |

```tangu
(+ (Date 2026 1 1) (months 2))
```

### nanos

`(nanos n) -> Duration`

Constructs an exact signed `Duration` representing `n` nanoseconds.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `n` | `Int` | no | Number of nanoseconds |

```tangu
(+ (Instant) (nanos 30))
```

### offset-of

`(offset-of zoned) -> Int`

Returns the UTC offset in whole seconds for the `Zoned-Date-Time` at that instant.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `zoned` | `Zoned-Date-Time` | no | Zoned datetime to inspect |

```tangu
(offset-of (Zoned-Date-Time/utc)) ; -> 0
```

### seconds

`(seconds n) -> Duration`

Constructs an exact signed `Duration` representing `n` seconds.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `n` | `Int` | no | Number of seconds |

```tangu
(+ (Instant) (seconds 30))
```

### span-round

`(span-round span-or-unit [span] [options]) -> Span`

Balances or rounds a `Span` across calendar/time units.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `unit_or_span` | `KeySymbol | Span` | no | Smallest unit KeySymbol or Span |
| `span` | `Span` | yes | Span to balance/round when first arg is unit |
| `options` | `Map` | yes | Balancing options {:largest :year :relative-to date} |

```tangu
(span-round :second (chrono/Span :millis 65432))
```

### span-total

`(span-total unit span [options]) -> Float`

Computes the exact floating-point total length of a `Span` in `unit`.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `unit` | `KeySymbol` | no | Target unit (:days, :hours, :minutes, :seconds, ...) |
| `span` | `Span | Duration` | no | Span or Duration to measure |
| `options` | `Map` | yes | Optional {:relative-to ...} reference for calendar units |

```tangu
(span-total :hours (chrono/Span :days 2 :hours 12)) ; -> 60.0
```

### timezone-of

`(timezone-of zoned) -> String`

Returns the IANA timezone identifier (e.g. `"Europe/Athens"`) or offset string.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `zoned` | `Zoned-Date-Time` | no | Zoned datetime to inspect |

```tangu
(timezone-of (Zoned-Date-Time/utc)) ; -> "UTC"
```

### to-date

`(to-date target) -> Date`

Extracts or parses a civil `Date`.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `target` | `Date-Time | Zoned-Date-Time | String` | no | Value to project to civil Date |

```tangu
(to-date (Date-Time/utc))
```

### to-date-time

`(to-date-time target) -> Date-Time`

Converts a zoned datetime or ISO string into a timezone-naive `Date-Time`.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `target` | `Zoned-Date-Time | String` | no | Value to convert to civil Date-Time |

```tangu
(to-date-time (Zoned-Date-Time/utc))
```

### to-duration

`(to-duration value) -> Duration`

Converts a fixed-unit `Span`, ISO string, or map into an exact `Duration`.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `value` | `Span | String | Map` | no | Value to convert to Duration |

```tangu
(to-duration (chrono/minutes 10))
```

### to-instant

`(to-instant target) -> Instant`

Converts a zoned datetime, ISO string, or epoch integer into a physical `Instant`.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `target` | `Zoned-Date-Time | String | Int` | no | Value to convert to Instant |

```tangu
(to-instant (Zoned-Date-Time/local))
```

### to-iso-string

`(to-iso-string temporal) -> String`

Serializes a temporal value or span in canonical ISO-8601 format.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `temporal` | `Date | Time | Date-Time | Zoned-Date-Time | Instant | Duration | Span` | no | Temporal value |

```tangu
(to-iso-string (Date 2026 5 1))
```

### to-rfc-3339

`(to-rfc-3339 temporal) -> String`

Formats an `Instant` or `Zoned-Date-Time` as an RFC 3339 UTC/offset timestamp.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `temporal` | `Instant | Zoned-Date-Time | Date-Time` | no | Temporal instant |

```tangu
(to-rfc-3339 (Instant))
```

### to-span

`(to-span value) -> Span`

Converts a `Duration`, ISO string, or map into a calendar `Span`.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `value` | `Duration | String | Map` | no | Value to convert to Span |

```tangu
(to-span (chrono/seconds 90))
```

### to-string

`(to-string temporal) -> String`

Formats any `/chrono` temporal or duration value as a human-readable string.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `temporal` | `Any` | no | Chrono temporal or duration value |

```tangu
(to-string (chrono/minutes 5))
```

### to-time

`(to-time target) -> Time`

Extracts or parses a civil `Time`.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `target` | `Date-Time | Zoned-Date-Time | String` | no | Value to project to civil Time |

```tangu
(to-time (Date-Time/local))
```

### to-zoned-date-time

`(to-zoned-date-time target timezone [disambiguation]) -> Zoned-Date-Time`

Projects an `Instant` or `Date-Time` into the given IANA timezone.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `target` | `Instant | Date-Time | Zoned-Date-Time | String` | no | Temporal value to attach timezone to |
| `timezone` | `String` | no | IANA timezone name |
| `disambiguation` | `KeySymbol` | yes | Optional DST disambiguation strategy |

```tangu
(to-zoned-date-time (Instant) "UTC")
```

### weekday-of

`(weekday-of date) -> Int`

Alias of `day-of-week` returning ISO Monday=1 .. Sunday=7 weekday integer.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `date` | `Date | Date-Time | Zoned-Date-Time` | no | Date or datetime to inspect |

```tangu
(weekday-of (Date/local))
```

### weeks

`(weeks n) -> Span`

Constructs a calendar/clock `Span` representing `n` 7-day weeks.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `n` | `Int` | no | Number of 7-day weeks |

```tangu
(+ (Date 2026 1 1) (weeks 2))
```

### with-timezone

`(with-timezone zoned timezone [disambiguation]) -> Zoned-Date-Time`

Projects a temporal instant into a different IANA timezone.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `zoned` | `Zoned-Date-Time | Instant | Date-Time` | no | Temporal value |
| `timezone` | `String` | no | Target IANA timezone identifier |
| `disambiguation` | `KeySymbol` | yes | Optional DST disambiguation option |

```tangu
(with-timezone (Zoned-Date-Time/utc) "America/New_York")
```

### years

`(years n) -> Span`

Constructs a calendar/clock `Span` representing `n` calendar years.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `n` | `Int` | no | Number of calendar years |

```tangu
(+ (Date 2026 1 1) (years 2))
```
