it is currently {{epoch}} everywhere (even in Australia).
[Fake-Paris]
time
=
Epoch time
({{epoch}})
﹣
your computer's offset
({{offset}} mins)
+
current offset
Europe/Paris
(with DST)
but hold up -
to change the date, you have to shift to your computer's offset, make the calendar-based change, then shift it back to Paris time,
in some kind of distopian web programming:
this is error-prone!
one challenge is that
different DST rules may apply on your computer, compared to Paris-time.
- you may miss a DST-shift while pretending to be in Paris, but lying about it.
another possibility is making a very specific time locally, that doesn't exist in Paris-time.
spacetime 🎉
(mostly) addresses these problems in post-processing the date after every transformation,
to ensure the funny-business is a minimum.
if it's
9:37pm, and you move forward 6 months, it should still be
9:37pm.
- even the day of the month should remain stable too, when possible
There is admittedly, some guesswork involved.
but what a pleasure, to let this little library do that for you
🌈
not for
every use-case, fine for most. -