Click here to Skip to main content
15,900,511 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: It's about TIME for a programming question Pin
Brisingr Aerowing28-Jul-16 6:13
professionalBrisingr Aerowing28-Jul-16 6:13 
GeneralRe: It's about TIME for a programming question Pin
Vikram A Punathambekar28-Jul-16 7:20
Vikram A Punathambekar28-Jul-16 7:20 
GeneralRe: It's about TIME for a programming question Pin
Clifford Nelson28-Jul-16 5:08
Clifford Nelson28-Jul-16 5:08 
GeneralRe: It's about TIME for a programming question Pin
Marc Clifton28-Jul-16 5:18
mvaMarc Clifton28-Jul-16 5:18 
GeneralRe: It's about TIME for a programming question Pin
Clifford Nelson28-Jul-16 5:28
Clifford Nelson28-Jul-16 5:28 
GeneralRe: It's about TIME for a programming question Pin
WiganLatics28-Jul-16 5:12
professionalWiganLatics28-Jul-16 5:12 
GeneralRe: It's about TIME for a programming question Pin
Marc Clifton28-Jul-16 5:19
mvaMarc Clifton28-Jul-16 5:19 
GeneralRe: It's about TIME for a programming question Pin
patbob28-Jul-16 5:46
patbob28-Jul-16 5:46 
Marc Clifton wrote:
Am I missing something obvious? Have you had to deal with this issue?

Yes. You store the time in UTC and then apply any local adjustments at display time. Anything else leads quickly to insanity. Usually, you also give the viewer the choice on whether to see the timestamps in their local time, or in UTC, because people who deal with a lot of timestamps generated in different parts of the globe, rapidly become pretty accustomed to reading them in UTC.

The ONLY time it makes sense to use local time, is when the timestamps will only ever be generated, and viewed, in only one time zone, and both are done in the same time zone. The moment you make those timestamps accessible on a network in some way, that assumption breaks, so the smart move is to save the data in UTC, even if you think you'll only ever display it in the timezone it was created in. If the data is in UTC, then you can always upgrade the viewer later.
We can program with only 1's, but if all you've got are zeros, you've got nothing.

GeneralRe: It's about TIME for a programming question Pin
ledtech328-Jul-16 6:15
ledtech328-Jul-16 6:15 
AnswerRe: It's about TIME for a programming question Pin
Jeremy Falcon28-Jul-16 6:38
professionalJeremy Falcon28-Jul-16 6:38 
GeneralRe: It's about TIME for a programming question Pin
Pablo Aliskevicius28-Jul-16 6:44
Pablo Aliskevicius28-Jul-16 6:44 
GeneralRe: It's about TIME for a programming question Pin
Ryan Peden28-Jul-16 6:55
professionalRyan Peden28-Jul-16 6:55 
JokeRe: It's about TIME for a programming question Pin
Nish Nishant28-Jul-16 7:49
sitebuilderNish Nishant28-Jul-16 7:49 
GeneralRe: It's about TIME for a programming question Pin
Marc Clifton28-Jul-16 9:16
mvaMarc Clifton28-Jul-16 9:16 
GeneralRe: It's about TIME for a programming question Pin
Worried Brown Eyes28-Jul-16 11:32
Worried Brown Eyes28-Jul-16 11:32 
GeneralRe: It's about TIME for a programming question Pin
Gaston Verelst28-Jul-16 20:27
Gaston Verelst28-Jul-16 20:27 
GeneralRe: It's about TIME for a programming question Pin
rnbergren29-Jul-16 2:50
rnbergren29-Jul-16 2:50 
GeneralRe: It's about TIME for a programming question Pin
Kirk 1038982129-Jul-16 6:03
Kirk 1038982129-Jul-16 6:03 
GeneralRe: It's about TIME for a programming question Pin
Steven121829-Jul-16 7:00
professionalSteven121829-Jul-16 7:00 
GeneralRe: It's about TIME for a programming question Pin
Gerry Schmitz30-Jul-16 0:30
mveGerry Schmitz30-Jul-16 0:30 
GeneralRe: It's about TIME for a programming question Pin
H.Brydon30-Jul-16 10:05
professionalH.Brydon30-Jul-16 10:05 
GeneralWhen did you last turn this thing on? Pin
OriginalGriff28-Jul-16 2:42
mveOriginalGriff28-Jul-16 2:42 
GeneralRe: When did you last turn this thing on? Pin
Daniel Pfeffer28-Jul-16 3:03
professionalDaniel Pfeffer28-Jul-16 3:03 
GeneralRe: When did you last turn this thing on? Pin
#realJSOP28-Jul-16 3:44
professional#realJSOP28-Jul-16 3:44 
GeneralRe: When did you last turn this thing on? Pin
dandy7228-Jul-16 4:01
dandy7228-Jul-16 4:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   489 votes