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
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list