@[inline]
Converts a PlainDateTime
to a Timestamp
Equations
- Std.Time.Timestamp.ofPlainDateTimeAssumingUTC pdt = pdt.toTimestampAssumingUTC
Instances For
@[inline]
Converts a Timestamp
to a PlainDateTime
Equations
- timestamp.toPlainDateTimeAssumingUTC = Std.Time.PlainDateTime.ofTimestampAssumingUTC timestamp
Instances For
@[inline]
Converts a PlainDate
to a Timestamp
Equations
- Std.Time.Timestamp.ofPlainDateAssumingUTC pd = Std.Time.Timestamp.ofSecondsSinceUnixEpoch pd.toDaysSinceUNIXEpoch.toSeconds
Instances For
@[inline]
Converts a Timestamp
to a PlainDate
Equations
- timestamp.toPlainDateAssumingUTC = Std.Time.PlainDate.ofDaysSinceUNIXEpoch (Std.Time.Day.Offset.ofSeconds timestamp.toSecondsSinceUnixEpoch)
Instances For
@[inline]
Converts a Timestamp
to a PlainTime
Equations
- timestamp.getTimeAssumingUTC = Std.Time.PlainTime.ofNanoseconds timestamp.toNanosecondsSinceUnixEpoch
Instances For
@[inline]
Converts a PlainDate
to a Timestamp
Equations
- pdt.toTimestampAssumingUTC = Std.Time.Timestamp.ofPlainDateAssumingUTC pdt
Instances For
Equations
- Std.Time.PlainDate.instHSubDuration = { hSub := fun (x y : Std.Time.PlainDate) => x.toTimestampAssumingUTC - y.toTimestampAssumingUTC }
@[inline]
Converts a PlainDate
to a Timestamp
Equations
- Std.Time.PlainDateTime.ofPlainDate date = { date := date, time := Std.Time.PlainTime.midnight }
Instances For
@[inline]
Converts a PlainTime
to a PlainDateTime
Equations
- Std.Time.PlainDateTime.ofPlainTime time = { date := { year := 1, month := 1, day := 1, valid := Std.Time.PlainDateTime.ofPlainTime.proof_1 }, time := time }
Instances For
Equations
- Std.Time.PlainDateTime.instHSubDuration = { hSub := fun (x y : Std.Time.PlainDateTime) => x.toTimestampAssumingUTC - y.toTimestampAssumingUTC }