My opinion:
Gambas can store date format internally however Benoit decides.
Here in North America, every uses MM-DD-YYYY
This is a (human) standard here because we would say
   April 13, 2011 which is the same order.
The Canadian government uses YYYY-MM-DD.
If you have dates as a string for sorting and comparing,
then YYYY-MM-DD works great.
mySQL's default is YYYY-MM-DD.
If dates are stored as an float (like VB did) then it works too.
If dates are stored like an int then it would work too.
Most importantly, the computer does it whatever we want it to do.
So, create programs for humans to present dates and times most 
convenient...to the user.  Don't program for convenience.
It makes for a bad program
Make programs for date locale and make humans happy.
-Fernando


---------- Original Message -----------
From: Benoît Minisini <gam...@users.sourceforge.net>
To: mailing list for gambas users <gambas-user@lists.sourceforge.net>
Sent: Mon, 11 Apr 2011 15:49:33 +0200
Subject: Re: [Gambas-user] Should not we follow the ISO 8601 standard?

> > Hi! I was read an article about ISO 8601, and think...¡Date of Gambas don't
> > follow this!
> > 
> > Print Now ----> 04/11/2011 06:12:18
> > 
> > But the standard dictates otherwise: the format is YYYY-MM-DD.
> > 
> > It's a problem, or is you are indifferent at this standard?
> > 
> > Well, if you not known this standard, you can read this article in
> > Wikipedia: http://en.wikipedia.org/wiki/ISO_8601
> > 
> > Regards,
> 
> Print and Str() returns the date in the format defined by the current 
> localization.
> 
> CStr() returns the date in the US format.
> 
> If you want the ISO 8601 format, you have to play with the Format$() function.
> 
> Regards,
> 
> -- 
> Benoît Minisini
> 
> ------------------------------------------------------------------------------
> Xperia(TM) PLAY
> It's a major breakthrough. An authentic gaming
> smartphone on the nation's most reliable network.
> And it wants your games.
> http://p.sf.net/sfu/verizon-sfdev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
------- End of Original Message -------


------------------------------------------------------------------------------
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights are discussed in the 2010 Forrester Wave Report as
part of an in-depth evaluation of disaster recovery service providers.
Forrester found the best-in-class provider in terms of services and vision.
Read this report now!  http://p.sf.net/sfu/ibm-webcastpromo
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to