- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
When the only tool you have is an axe, all problems start looking like co-workers.
Admin
Well at least give them credit for some relevant historical reference, after all it's almost 100 years since the end of WW1 :-)
Admin
Add a database. Now you have two problems.
Admin
I know, I'll use regular expression then!
Admin
When all you have is a hammer, you use it to whack people.
Admin
One of the few times I have actually said the words "What the F--k" out loud when reading this site.
Admin
The extra amusing thing is that SQLite has no native time, date, timestamp, or duration data types. The core database engine has no concept of times or dates. All it has is a few functions to convert between different time/date formats, mostly as strings. While not exactly the same, these functions are modeled after the standard C functions.
Admin
If you can match a date to a pretty important historical event, it's not "arbitrary" enough.
Admin
I love the fact they knew enough to be aware of the strftime() function in SQLite, but not enough to go looking for an equivalent in the C standard libraries..... like maybe strftime(), the C library function that the SQLite documentation specifically mentions and links to....
Admin
After watching a cow-orker repeatedly finding the most complex solutions to problems, I came up with "When all you have is a three-headed hammer, everything looks like three nails."
Admin
The Armistice was at 11:00, not 11:11.
Admin
The armistice was signed near Paris. So not Zulu/GMT/UTC. So that's wrong, too. :)
Admin
Should the title of the article be "Liteweight Date Handling"?
Admin
"We may leak some memory if this happens" hahahahahaha
Admin
I long for the days when learning curve for becoming a software engineer was steep, and when only the most devoted people could learn how to write code, not to mention that reading code was a required skill.
Admin
Everyone knows that if you want to specify an arbitrary time you use Mon Jan 2 15:04:05 -0700 MST 2006.
Admin
Not back then ... Paris was GMT until a few decades later
Admin
Except that in 1918, France was on GMT, not CET. That change didn't happen until World War II.
Admin
http://bit.ly/2FTOgMG
Admin
We're still in those days, so long as we stipulate that "becoming a software engineer" and "writing code" exclude code academy grads and other face typists.
Admin
While I make no claim to being the best programmer in the world I sometimes read articles on this site and think meh, this has given me serious what the fuck thoughts
Admin
I'm afraid of asking this but... why?
I only want to be part of that 'everyone' you know... social acceptance... :D
Why is that datetime so usual? what happend that day?
Admin
Nothing special - it's a date chosen so that the date representation uniquely specified the date format.
See: https://golang.org/pkg/time/
Of course one could pick different values for this - in particular different orderings as this date is quite clearly US-centric - but the general idea us quite nice:
Personally, as an European, I'd have used 2001-02-03T20:05:06+0700 instead - but the date the Go team picked works too.