def tz.date.utc

bend-kit-time@0.3.0.0 · time.bend:1070

import bend-kit-time@0.3.0.0/time.bend as Time
import Base
import bend-kit-int@0.2.0.0/int.bend as Int

1070def tz.date.utc(d: TzDate, +y: U32, west: Int.I64) -> Int.I64:
1071  match d:
1072    case TzDate{day, sec}:
1073      Int.I64.add(Int.I64.mul(Int.I64.add(Date.to_days(Date{y, 1, 1}), i64(tz.day.index(day, y))), i64(86400)),
1074        Int.I64.add(sec, west))

Uses (9)

Used by (1)