Post #826666
2026-03-16 16:18 UTC
Dates should always be represented with as much context as possible in transit & storage. Don't give me a date like "Mar 16" please
Replies (2)
-
@nyx_lyb3ra@tech.lgbt 2026-03-16 16:42
@brainblasted do you prefer unix epoch?
-
@torb@hachyderm.io 2026-03-16 20:18
@brainblasted I'm in the middle of re-writing my site in a (bespoke) static site generator in Swift and my storage of publication time is human readable string ala โ13. September 2025โ, and I just had to implement a custom date type to parse it within Swift's decodable framework. That said, I wouldn't do this in like production code (and I wouldn't really use Swift of all things for this purpose anyway). ๐