Kotlinx Datetime Helper Kit

Wrap the multiplatform date-time library's instant-to-local-date-time conversions in a few named helpers — now, epoch converters, comparisons, a shifted-window helper and a relative "time ago" formatter — so call sites read as intent instead of ceremony. Covers what each wrapper must pin explicitly, and the trap family behind it: a helper reading one time zone while persistence reads another, arithmetic done on wall-clock types, a formatter that can only run during composition, and a parse failure that returns a legal value. Use when stored timestamps come back shifted by the device's offset, when a duration is wrong only around a clock change or only for some users, or when a relative label stays stale on screen.

maxrave-dev ad3e45f 8.6 KB Updated

File contents

maxrave-dev/kotlin-footguns/tree/main/skills/kotlinx-datetime-helper-kit commit ad3e45f1f6

Frequently asked questions

npx skillmds@latest add maxrave-dev/kotlinx-datetime-helper-kit