- 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
Frist! I love the Daily WTF, it is always a good reminder of what NOT to do. Thanks!
Admin
Must be Finno-Serbian notation!
Admin
50 years ago, when there were few libraries available for any platform, it often made sense to roll your own ... but not with timestamps; even the most perfunctory vendor libraries had date functions!
a truly classic wtf. thanks!
Admin
That's just blakeyrat, abusing holes in the comment board in an attempt to get somebody to fix them.
Admin
Logging in the 2 least mutually comprehensible European languages is very special
Admin
Admin
If we assume that the desired month format has changed at some point from numeric to short-name form, I think this may once have been a valid form of Apps Hungarian or Semantic Hungarian, using a prefix to indicate that "this variable holds the month number", even though stored as a string. (I would have preferred numMonth to avoid confusion with the data type, though.)
Admin
Should then be strMonthNum
Admin
What a newbie mistake. He should have named it "sIntMonth" so it's clear that it's a string that's holding a textual representation of an int (rather than "March").
Admin
On behalf of all owners and lovers of mongrels (dogs), we strongly object to the use of "mongrel" as a derogative term. We demand an apology (and a safe space).
Admin
Sorry, the world is an unsafe place. Deal with it.
We now return you to the regularly scheduled program (WTF).
Admin
And apparently the world is full of people who are completely lacking in humor and sarcasm detectors, too.
Admin
Would have been funnier, if it felt less true...
Admin
Nobody's mentioned this yet, but I love the fact that this is "M/dd" too. I wonder what happens once October rolls around?
Admin
Admin
That's the beauty of this multi layered WTF. The comment's wrong. M is just a single non padding digit for month, returned as a string of course. It's 1/01, 1/02, 1/03. android.text.format.DateFormat uses the same format as SimpleDateFormat.
Similarly the year comment is wrong as well. yy is a two digit padded year. Fortunately that's never used. Well, I guess you have to look for fortune where you can in this mess.
Admin
Yea noticed that too, but who knows:
Jan => '1' Feb => '2' .. Sep => '9' Oct => 'A' Nov => 'B' Dec => 'C'
You see, plenty of room in a single digit for all the months and even a few to spare if some jerk like Julius or Augustus shows up and messes with the calendar again..
Yazeran
Plan: To go to Mars one day with a hammer.
Admin
You had me with 'date'.
Admin
Admin
They're too sensitive to leave to an intern. I nominate a private server for personal male.
Admin
Crap, you're right! I just looked at the specs and it is as you said.
So, I guess yesterday the WTF was me.
Admin
Serb here. I think the writer mixed us up with Indians.