Re: Source changes
- Posted by Derek Parnell <ddparnell at bigpond.?om> Jul 03, 2007
- 632 views
CChris wrote: > > Derek Parnell wrote: > > The commonly used date format is {YYYY,MM,DD, ...} but the Epoch form is > > also > > used. There are at least two good date-time libraries in the User > > Contributions > > section so I'd suggest that we combine the good aspects of those into a > > single > > officially-supported library. > What you say is true for UK/US aligned countries. Most Latin countries > (France, > Spain, Italy...) use DD-MM-YY or -YYYY format. And if I remember correctly, > Japan uses another specific format. I suspect you have misread what I said above. The date format I described is the INTERNAL one and not the one formatted for display. I know the locale issues very well as I have to deal with the US-Centric world far too often. Most countries use DD-MM-YYYY, Japan mostly uses YYYY-MM-DD, and the U.S. uses MM-DD-YYYY, plus there are other variations. > As a result, locale-dependent routines are needed. Problem is, how will they > behave under DOS, where I am not sure that locales make sense at all? I had in mind that the applications using my library would specify the locale elements (once) at run time and I wouldn't try to get them from the operating system. I'd leave that task to the application. -- Derek Parnell Melbourne, Australia Skype name: derek.j.parnell