Click here to Skip to main content
15,917,061 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: DOS timestamp vs Explorer timestamp Pin
Richard Jones15-Nov-16 8:27
Richard Jones15-Nov-16 8:27 
GeneralRe: DOS timestamp vs Explorer timestamp Pin
OriginalGriff15-Nov-16 8:41
mveOriginalGriff15-Nov-16 8:41 
GeneralRe: DOS timestamp vs Explorer timestamp Pin
Richard Jones15-Nov-16 8:44
Richard Jones15-Nov-16 8:44 
GeneralRe: DOS timestamp vs Explorer timestamp Pin
Jeremy Falcon15-Nov-16 8:44
professionalJeremy Falcon15-Nov-16 8:44 
GeneralRe: DOS timestamp vs Explorer timestamp Pin
Richard Jones15-Nov-16 8:50
Richard Jones15-Nov-16 8:50 
GeneralRe: DOS timestamp vs Explorer timestamp Pin
Jeremy Falcon15-Nov-16 8:51
professionalJeremy Falcon15-Nov-16 8:51 
GeneralRe: DOS timestamp vs Explorer timestamp Pin
Richard Jones15-Nov-16 8:52
Richard Jones15-Nov-16 8:52 
GeneralRe: DOS timestamp vs Explorer timestamp Pin
Jeremy Falcon15-Nov-16 9:03
professionalJeremy Falcon15-Nov-16 9:03 
I think this is what's happening then. I'm *guessing* the timestamp was saved in its real time (without a DST modifier) when DST was on. Presumably, the command window was smart enough to know DST is on and therefore adjusted the timestamps when shown on the fly. However, now that DST is off, it doesn't. Which is all fine and dandy except 9:40 didn't really exist back when that file was modified.

Any new changes, using the same logic, would be ok simply because DST off is off. So all good and the command processor doesn't need to be as smart as explorer.

To get around this, you're pretty much screwed bro. Best I think you can do in a batch file / script is just figure out if your date is within certain dates from when DST switches on and off and then account for it. It's hard coded. It's nasty. Not sure of anything else though.

And of course write a strongly written letter to MS for not storing timestamps in UTC. Smile | :)
Jeremy Falcon

GeneralRe: DOS timestamp vs Explorer timestamp Pin
Richard Deeming15-Nov-16 9:23
mveRichard Deeming15-Nov-16 9:23 
PraiseRe: DOS timestamp vs Explorer timestamp Pin
Jeremy Falcon15-Nov-16 11:44
professionalJeremy Falcon15-Nov-16 11:44 
GeneralRe: DOS timestamp vs Explorer timestamp Pin
Richard Deeming15-Nov-16 8:37
mveRichard Deeming15-Nov-16 8:37 
GeneralRe: DOS timestamp vs Explorer timestamp Pin
Jeremy Falcon15-Nov-16 8:54
professionalJeremy Falcon15-Nov-16 8:54 
GeneralRe: DOS timestamp vs Explorer timestamp Pin
Richard Jones15-Nov-16 9:02
Richard Jones15-Nov-16 9:02 
GeneralRe: DOS timestamp vs Explorer timestamp Pin
Jeremy Falcon15-Nov-16 9:03
professionalJeremy Falcon15-Nov-16 9:03 
GeneralRe: DOS timestamp vs Explorer timestamp Pin
Kirill Illenseer15-Nov-16 21:33
Kirill Illenseer15-Nov-16 21:33 
GeneralRe: DOS timestamp vs Explorer timestamp Pin
Richard Jones16-Nov-16 2:38
Richard Jones16-Nov-16 2:38 
GeneralRe: DOS timestamp vs Explorer timestamp Pin
165015-Nov-16 22:14
165015-Nov-16 22:14 
GeneralRe: DOS timestamp vs Explorer timestamp Pin
MikeD 215-Nov-16 23:23
MikeD 215-Nov-16 23:23 
GeneralRe: DOS timestamp vs Explorer timestamp Pin
KLSmith16-Nov-16 3:35
KLSmith16-Nov-16 3:35 
GeneralRe: DOS timestamp vs Explorer timestamp Pin
GenJerDan16-Nov-16 6:32
GenJerDan16-Nov-16 6:32 
GeneralRe: DOS timestamp vs Explorer timestamp Pin
kalberts17-Nov-16 1:25
kalberts17-Nov-16 1:25 
GeneralThought of the day Pin
OriginalGriff15-Nov-16 5:08
mveOriginalGriff15-Nov-16 5:08 
GeneralRe: Thought of the day Pin
Mark_Wallace15-Nov-16 5:15
Mark_Wallace15-Nov-16 5:15 
GeneralRe: Thought of the day Pin
OriginalGriff15-Nov-16 5:25
mveOriginalGriff15-Nov-16 5:25 
GeneralRe: Thought of the day Pin
Colin Mullikin15-Nov-16 7:43
professionalColin Mullikin15-Nov-16 7:43 

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.