in reply to Re^2: Question regarding Time::Piece and timezones
in thread Question regarding Time::Piece and timezones
I personally always use gmtime(), which is close to utc time.
There is a slight difference between gm and utc time, but not much.
The difference is so small that I don't want to argue about it.
I recommend using GM or UTC time for all values stored in a DB.
Use a a conversion module like Time::Piece for translation to
translate the DB time to a user time zone.
My local government had a problem with the fall time change.
This actually allowed bars to remain open for one extra hour on one
day of the year.
They fixed that "problem".
gmtime() just marches onward- there is no "fall back".
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Question regarding Time::Piece and timezones
by hippo (Archbishop) on Jan 14, 2021 at 13:25 UTC | |
|
Re^4: Question regarding Time::Piece and timezones
by atcroft (Abbot) on Jan 15, 2021 at 00:03 UTC | |
|
Re^4: Question regarding Time::Piece and timezones
by Bod (Parson) on Jan 14, 2021 at 23:55 UTC | |
|
Re^4: Question regarding Time::Piece and timezones
by jszinger (Scribe) on Jan 15, 2021 at 18:06 UTC | |
by jszinger (Scribe) on Jan 26, 2021 at 17:14 UTC | |
by Marshall (Canon) on Jan 30, 2021 at 02:20 UTC |