Re: Time in format HHMMSS.D, slightly off topic
- From: Mark Roberts <gtkmm manumark de>
- To: ga <ga kutxa homeunix org>
- Cc: gtkmm-list gnome org
- Subject: Re: Time in format HHMMSS.D, slightly off topic
- Date: Sun, 6 Dec 2009 13:26:09 +0100 (CET)
Hi,
On Thu, Dec 03, 2009 at 07:08:10PM +0100, Glus Xof wrote:
std::cout << "Date: " << d1.format_string("%y/%m/%d") << std::endl;
std::cout << "Time: " << d1.format_string("%H:%M:%S") << std::endl;
This has nothing to do with your question, but I find it important: there
are many date formats in the world. Some use slashes '/' some use hyphens
'-' some use dots '.' some have the year first, the date first or even the
month first.
The example date format in your code "%y/%m/%d" is confusing:
The slashes make it look American, but then it should be "%m/%d/%y".
The order makes it look ISO, but then it should be "%y-%m-%d".
Mixing often used formats can confuse the reader. Example: I bought a bag
of peas, best before 10/12. The American slash makes this October 12th.
Me being located in Germany makes it December 10th., which should be
written 10.12.
Are they safe to eat?
Mark
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]