Post Reply 
Daylight Saving
03-31-2014, 12:09 AM
Post: #2
RE: Daylight Saving
(03-30-2014 05:48 PM)ColinJDenman Wrote:  Should the Prime be able to implement a DST correction ;-) (And if so, for what location!)

There are so many possible DST corrections (zone, date, location) ... I'd first suggest a simple "DSTahead: add DST-offset to current time" and "DSTback: subtract DST-offset from current time" where DST-offset is a user global set by the user. DSTahead and DSTback would be executed by the user. (At the moment, I believe the possible values would be 0, 60, 90, or 120 minutes, but I haven't looked recently.)

Time zone changes are also possible and a further mess. While there are 24 obvious time zones, in practice there are more, not all of which are an integer number of hours from UTC.

If you want, then something much more complex could be coded, the Wikipedia article on Daylight Savings Time has the beginnings of the details.

Not trying to discourage you, just how complicated the task is!
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Daylight Saving - ColinJDenman - 03-30-2014, 05:48 PM
RE: Daylight Saving - htom trites - 03-31-2014 12:09 AM
RE: Daylight Saving - Tim Wessman - 03-31-2014, 02:45 AM
RE: Daylight Saving - htom trites - 03-31-2014, 04:50 AM
RE: Daylight Saving - ColinJDenman - 04-01-2014, 09:26 PM
RE: Daylight Saving - orcinus - 04-02-2014, 09:42 PM
RE: Daylight Saving - Frozen North - 04-03-2014, 01:11 AM
RE: Daylight Saving - orcinus - 04-03-2014, 03:55 AM
RE: Daylight Saving - ColinJDenman - 04-03-2014, 11:49 PM
RE: Daylight Saving - orcinus - 04-04-2014, 01:33 AM
RE: Daylight Saving - ColinJDenman - 04-04-2014, 01:55 AM
RE: Daylight Saving - DGM - 04-04-2014, 01:48 AM
RE: Daylight Saving - ColinJDenman - 04-04-2014, 07:27 AM
RE: Daylight Saving - orcinus - 04-04-2014, 01:54 PM
RE: Daylight Saving - debrouxl - 04-04-2014, 06:29 AM
RE: Daylight Saving - ColinJDenman - 04-04-2014, 07:22 AM
RE: Daylight Saving - htom trites - 04-04-2014, 06:36 PM



User(s) browsing this thread: 1 Guest(s)