@[inline]
Converts a PlainDateTime
to a Timestamp
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
Instances For
@[inline]
Converts a Timestamp
to a PlainTime
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
@[inline]
Converts a PlainDateTime
to a PlainTime