You can easily compute that using the following Chronos code:
ChronosFunction
daysAndSecondsSinceStartOfDayFromSeconds: 128000000000000000 // 10000000
into: [:days :seconds |
Timepoint
daysSinceEpoch: days + (YearMonthDay year: 1601 day: 1) daysSinceEpoch
seconds: seconds
timeZone: #UT]
If you'd prefer to have the result computed relative to your local time zone, use the following variation:
ChronosFunction
daysAndSecondsSinceStartOfDayFromSeconds: 128000000000000000 // 10000000
into: [:days :seconds |
Timepoint
utDaysSinceEpoch: days + (YearMonthDay year: 1601 day: 1) daysSinceEpoch
seconds: seconds]
No comments:
Post a Comment