Click here to Skip to main content
15,887,404 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralRe: Time Stamps Rendered by CMD.exe Pin
Jochen Arndt13-May-18 20:56
professionalJochen Arndt13-May-18 20:56 
GeneralRe: Time Stamps Rendered by CMD.exe Pin
David A. Gray14-May-18 10:17
David A. Gray14-May-18 10:17 
GeneralRe: Time Stamps Rendered by CMD.exe Pin
Jochen Arndt14-May-18 12:12
professionalJochen Arndt14-May-18 12:12 
GeneralRe: Time Stamps Rendered by CMD.exe Pin
David A. Gray16-May-18 6:58
David A. Gray16-May-18 6:58 
GeneralRe: Time Stamps Rendered by CMD.exe Pin
Randor 14-May-18 16:58
professional Randor 14-May-18 16:58 
GeneralRe: Time Stamps Rendered by CMD.exe Pin
David A. Gray16-May-18 6:30
David A. Gray16-May-18 6:30 
GeneralRe: Time Stamps Rendered by CMD.exe Pin
Randor 16-May-18 16:01
professional Randor 16-May-18 16:01 
GeneralRe: Time Stamps Rendered by CMD.exe Pin
David A. Gray17-May-18 4:44
David A. Gray17-May-18 4:44 
The problem with that theory, which has already born fruit, is that all of those functions retrieve a UTC time stamp. The issue is what happens on the 12th floor when the runtime that got the ball rolling converts the returned time stamp to local time. The outcome depends on whether they take into account the actual date and the DST transition dates on either side of it. Some frameworks take the same dumb approach implemented by CMD.exe, which treats all times as if they were in the current transition (DST vs. Standard Time). So far, I've already found two other frameworks (Perl and VBScript) that take that naieve approach.
David A. Gray
Delivering Solutions for the Ages, One Problem at a Time
Interpreting the Fundamental Principle of Tabular Reporting

GeneralRe: Time Stamps Rendered by CMD.exe Pin
Randor 17-May-18 10:01
professional Randor 17-May-18 10:01 
GeneralRe: Time Stamps Rendered by CMD.exe Pin
DaveAuld19-May-18 21:37
professionalDaveAuld19-May-18 21:37 
GeneralRe: Time Stamps Rendered by CMD.exe Pin
David A. Gray21-May-18 7:15
David A. Gray21-May-18 7:15 
GeneralSunday morning, and Microsoft has rebooted my laptop... Pin
charlieg13-May-18 2:46
charlieg13-May-18 2:46 
GeneralRe: Sunday morning, and Microsoft has rebooted my laptop... Pin
Slacker00713-May-18 3:11
professionalSlacker00713-May-18 3:11 
GeneralRe: Sunday morning, and Microsoft has rebooted my laptop... Pin
raddevus13-May-18 3:31
mvaraddevus13-May-18 3:31 
GeneralRe: Sunday morning, and Microsoft has rebooted my laptop... Pin
charlieg13-May-18 3:58
charlieg13-May-18 3:58 
GeneralRe: Sunday morning, and Microsoft has rebooted my laptop... Pin
raddevus13-May-18 5:02
mvaraddevus13-May-18 5:02 
GeneralRe: Sunday morning, and Microsoft has rebooted my laptop... Pin
Randor 13-May-18 15:17
professional Randor 13-May-18 15:17 
GeneralRe: Sunday morning, and Microsoft has rebooted my laptop... Pin
raddevus13-May-18 17:03
mvaraddevus13-May-18 17:03 
GeneralRe: Sunday morning, and Microsoft has rebooted my laptop... Pin
Slacker00713-May-18 4:08
professionalSlacker00713-May-18 4:08 
GeneralRe: Sunday morning, and Microsoft has rebooted my laptop... Pin
raddevus13-May-18 5:05
mvaraddevus13-May-18 5:05 
GeneralRe: Sunday morning, and Microsoft has rebooted my laptop... Pin
kmoorevs14-May-18 4:54
kmoorevs14-May-18 4:54 
GeneralRe: Sunday morning, and Microsoft has rebooted my laptop... Pin
raddevus14-May-18 5:20
mvaraddevus14-May-18 5:20 
GeneralRe: Sunday morning, and Microsoft has rebooted my laptop... Pin
charlieg13-May-18 3:54
charlieg13-May-18 3:54 
GeneralRe: Sunday morning, and Microsoft has rebooted my laptop... Pin
Slacker00713-May-18 4:06
professionalSlacker00713-May-18 4:06 
GeneralRe: Sunday morning, and Microsoft has rebooted my laptop... Pin
charlieg13-May-18 4:20
charlieg13-May-18 4:20 

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.