mirror of
https://github.com/simplex-chat/simplexmq.git
synced 2026-03-30 20:45:52 +00:00
565 B
565 B
Simplex.Messaging.SystemTime
Type-level precision timestamps for date bucketing and expiration.
Source: SystemTime.hs
getRoundedSystemTime
Rounds down (truncation): (seconds / precision) * precision. A timestamp at 23:59:59 with SystemDate (precision 86400) rounds to the start of the current day, not the nearest day.
roundedToUTCTime
Sets nanoseconds to 0. Any RoundedSystemTime converted to UTCTime and back to SystemTime will differ from the original getSystemTime value.