Do you have the [short] time for this? Part #1: The intro

Sorting it all Out
Michael Kaplan's random stuff of dubious value
Be sure to read the disclaimer here first!

Do you have the [short] time for this? Part #1: The intro

  • Comments 2

Once upon a time, there were two Win32 functions:

This is how the Windows Shell would decide how to display the time in its clock.

Every locale had a default time format, and a list of potential other time formats they could choose instead.

There was no "short time" format. There was just a "time" format that you could pass a flag to modify if you wanted.

Things worked okay.

And then .NET and its DateTimeFormatInfo came,

As .NET was largely meant to replace VB and VBA, it included a LongTimePattern and a ShortTimePattern and actively avoided the notion of "one time format and modification by flags" stuff.

Suddenly everyone started hating that there was no "short time".

And then, starting with .NET 2.0, we had custom cultures.

They became custom locales in Vista and beyond.

And the meaning of TIME_NOSECONDS was retconed to being "use the short time format" now they had a short time to look at:

So now we are where we are.

The old way of doing it is left to the curiosity of SD logs, and the retcon has been achieved.

But clearly there must be a problem, or I wouldn't be writing a blog or blogs about it.

For the problem, you'll have to wait until tomorrow!

Comment on the blather
Leave a Comment
  • Please add 5 and 4 and type the answer here:
  • Post
Blog - Comment List
  • Previous blog in the series: Do you have the [short] time for this? Part #1: The intro .

    With part

  • Previous blog in the series:

    Do you have the [short] time for this? Part #1: The intro.

    Do you

Page 1 of 1 (2 items)