Click here to Skip to main content
15,900,461 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.

 
GeneralBread to feeding the beard... Pin
Kornfeld Eliyahu Peter28-Jul-16 3:12
professionalKornfeld Eliyahu Peter28-Jul-16 3:12 
GeneralRe: Bread to feeding the beard... Pin
W Balboos, GHB28-Jul-16 4:20
W Balboos, GHB28-Jul-16 4:20 
GeneralRe: Bread to feeding the beard... Pin
Corporal Agarn28-Jul-16 4:51
professionalCorporal Agarn28-Jul-16 4:51 
GeneralRe: Bread to feeding the beard... Pin
Daniel Pfeffer28-Jul-16 5:54
professionalDaniel Pfeffer28-Jul-16 5:54 
GeneralRe: Bread to feeding the beard... Pin
Kornfeld Eliyahu Peter28-Jul-16 6:12
professionalKornfeld Eliyahu Peter28-Jul-16 6:12 
GeneralRe: Bread to feeding the beard... Pin
jsc4228-Jul-16 6:33
professionaljsc4228-Jul-16 6:33 
GeneralRe: Bread to feeding the beard... Pin
Mark_Wallace28-Jul-16 10:27
Mark_Wallace28-Jul-16 10:27 
GeneralIt's about TIME for a programming question Pin
Marc Clifton28-Jul-16 3:07
mvaMarc Clifton28-Jul-16 3:07 
The problem with time is that it is (of course) different depending on your time zone and daylight savings time for your region.

Scenario 1: Let's say I make a blog entry at 8 AM EST, then I get on an airplane and fly to CA and set my computer to PST. When I look at my blog entry, it probably says that I made the post at 5 AM, but in my thinking, my frame of reference is still "when did I make that post (when I was in NY)?"

Scenario 2: I make a blog entry at 8 AM EST, and you, living in CA, notice my blog entry, which has a time of 5 AM (because you're in PST.) That makes sense to you, in your reference frame, because you know you're 3 hours earlier.

Scenario 3: I run a company that has ATM's (disclaimer: this is a good example, irrelevant to the fact that write software for ATM's, I'm not asking you to solve programming problem in that regard) in local gas stations all over the country. A customer in NY (UTC-5 at some points of the year) calls and says the ATM didn't dispense cash or a receipt! The help desk asks when they did the transaction, and they say, around 8 AM because that's the time in NY. The customer service is in CA (UTC-8 at the moment, we'll customer service in India for this scenario), so what time do they search for? Do they need to ask "where were you?" so they know the time zone and mentally subtract off 3 hours (maybe dealing a 1 AM NY transaction on 1/1/2016 now being seen in CA as 12/31/2015 10 PM????)

So the question becomes, what does the user need to see, and what do they expect to see? When (harhar) does it make more sense to store date/time in the true local time, including timezone (either "PST" style notation, or "UTC-8" notation, for example, keeping in mind that not everyone knows what "UTC" is or even timezone designations like EST, MST, PST, etc. When does it make sense to convert to local time? Should both "my local time" and "transaction local time" be available for displaying/searching?

Am I missing something obvious? Have you had to deal with this issue?

And I haven't even touched the nightmare of daylight savings time.

Marc
Imperative to Functional Programming Succinctly

Contributors Wanted for Higher Order Programming Project!

Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny

GeneralRe: It's about TIME for a programming question Pin
Kornfeld Eliyahu Peter28-Jul-16 3:10
professionalKornfeld Eliyahu Peter28-Jul-16 3:10 
GeneralRe: It's about TIME for a programming question Pin
Marc Clifton28-Jul-16 3:16
mvaMarc Clifton28-Jul-16 3:16 
GeneralRe: It's about TIME for a programming question Pin
Marc Clifton28-Jul-16 5:38
mvaMarc Clifton28-Jul-16 5:38 
AnswerRe: It's about TIME for a programming question Pin
Duncan Edwards Jones28-Jul-16 3:16
professionalDuncan Edwards Jones28-Jul-16 3:16 
GeneralRe: It's about TIME for a programming question Pin
Nelek28-Jul-16 4:24
protectorNelek28-Jul-16 4:24 
GeneralRe: It's about TIME for a programming question Pin
Duncan Edwards Jones28-Jul-16 4:27
professionalDuncan Edwards Jones28-Jul-16 4:27 
GeneralRe: It's about TIME for a programming question Pin
Marc Clifton28-Jul-16 5:11
mvaMarc Clifton28-Jul-16 5:11 
GeneralRe: It's about TIME for a programming question Pin
Duncan Edwards Jones28-Jul-16 5:31
professionalDuncan Edwards Jones28-Jul-16 5:31 
GeneralRe: It's about TIME for a programming question Pin
Basildane28-Jul-16 3:49
Basildane28-Jul-16 3:49 
GeneralRe: It's about TIME for a programming question Pin
Nelek28-Jul-16 4:25
protectorNelek28-Jul-16 4:25 
GeneralRe: It's about TIME for a programming question Pin
Marc Clifton28-Jul-16 5:12
mvaMarc Clifton28-Jul-16 5:12 
GeneralRe: It's about TIME for a programming question Pin
Jeremy Falcon28-Jul-16 6:41
professionalJeremy Falcon28-Jul-16 6:41 
GeneralRe: It's about TIME for a programming question Pin
HobbyProggy28-Jul-16 3:49
professionalHobbyProggy28-Jul-16 3:49 
GeneralRe: It's about TIME for a programming question Pin
KarstenK28-Jul-16 4:07
mveKarstenK28-Jul-16 4:07 
GeneralRe: It's about TIME for a programming question Pin
HobbyProggy28-Jul-16 4:14
professionalHobbyProggy28-Jul-16 4:14 
GeneralRe: It's about TIME for a programming question Pin
Marc Clifton28-Jul-16 5:09
mvaMarc Clifton28-Jul-16 5:09 
GeneralRe: It's about TIME for a programming question Pin
Brisingr Aerowing28-Jul-16 6:11
professionalBrisingr Aerowing28-Jul-16 6:11 

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   488 votes