4 ms·
"Local time" is time zone metadata. I've written a fair bit about timekeeping, because the context of what you're capturing becomes very important: https://gith
by kstenerud 3y ago
"Local time" is time zone metadata. I've written a fair bit about timekeeping, because the context of what you're capturing becomes very important: https://github.com/kstenerud/concise-encoding/blob/master/ce-structure.md#appendix-b-recording-time https://github.com/kstenerud/concise-encoding/blob/master/ce...
- globular-toast 3y agoImagine you have users all around the world and you've got logs of their activities. Someone asks "do users spend more time on X in the morning or afternoon"? If you only recorded absolute times and threw away their local time then you can't answer that question. It doesn't matter whether you record UTC or local time as long as you record their time zone, you can always derive one from the other. This is an implementation detail that should be abstracted by any decent time library.
- kstenerud 3y agoIf you need that kind of information, you should be recording it separately.