def tz.date.utc
import bend-kit-time@0.3.0.0/time.bend as Timeimport 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))