Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ > Re: Dates (was ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 23 of 26 Topic 45831 of 48044
Post > Topic >>

Re: Dates (was Re: octal error)

by James Kanze <james.kanze@[EMAIL PROTECTED] > May 11, 2008 at 04:41 PM

On 11 mai, 22:26, Andy Champ <no....@[EMAIL PROTECTED]
> wrote:
> James Kanze wrote:
> >> I always feel there's a case for doing all my releases after
> >> the 12th of the month...

> > And of course, you make very sure you test the 29th Feb. in a
> > leap year before releasing as well.  Just as when time is
> > involved, you make sure you test 2:30 AM the day you go on, and
> > the day you go off summer time.  And on a 32 bit machine, you'll
> > definitely test some dates after 2038.

> Sure.  But you miss my point.

Not really.

> A release date of 1/12/08 could be in the future or the past;
> a release data of 1/13/08 (or 13/1/08) is definitely in the
> past!

> I was writing code long before the Millennium Bug went pop
> very quietly...

So was I.

All I can say is that you made a valid point: that one has to
test all of the special cases.  And all I wanted to add is that
that there are a lot of special cases, when it comes to dates
(and time).

I added it because I suspect that a lot of programmers forget to
test them.  Just as they don't take into account that in most of
the world, the standard format for entering dates is dd/mm/YYYY.
(Or dd-mm-YYYY.  Or, if you take into account ISO: YYYYmmdd.)

--
James Kanze (GABI Software)             email:james.kanze@[EMAIL PROTECTED]
 en informatique orient=E9e objet/
                   Beratung in objektorientierter Datenverarbeitung
9 place S=E9mard, 78210 St.-Cyr-l'=C9cole, France, +33 (0)1 30 23 00 34
 




 26 Posts in Topic:
octal error
notahipee <werldpeace@  2008-05-09 14:14:28 
Re: octal error
"Victor Bazarov"  2008-05-09 17:22:52 
Re: octal error
notahipee <werldpeace@  2008-05-09 14:36:12 
Re: octal error
"Victor Bazarov"  2008-05-09 17:53:19 
Re: octal error
"kwikius" <a  2008-05-09 22:54:06 
Re: octal error
"Default User"   2008-05-09 22:01:34 
Re: octal error
"kwikius" <a  2008-05-09 23:10:49 
Re: octal error
Juha Nieminen <nospam@  2008-05-10 09:30:42 
Re: octal error
"Default User"   2008-05-09 21:48:37 
Re: octal error
notahipee <werldpeace@  2008-05-09 14:53:58 
Re: octal error
"Victor Bazarov"  2008-05-09 17:59:38 
Re: octal error
=?UTF-8?B?RXJpayBXaWtzdHL  2008-05-10 14:39:05 
Re: octal error
notahipee <werldpeace@  2008-05-09 15:12:46 
Re: octal error
"kwikius" <a  2008-05-09 23:36:35 
Re: octal error
"Default User"   2008-05-09 22:54:42 
Dates (was Re: octal error)
Andy Champ <no.way@[EM  2008-05-10 18:20:31 
Re: octal error
notahipee <werldpeace@  2008-05-09 15:17:34 
Re: octal error
notahipee <werldpeace@  2008-05-09 15:18:46 
Re: octal error
notahipee <werldpeace@  2008-05-09 16:18:08 
Re: octal error
James Kanze <james.kan  2008-05-10 08:14:54 
Re: Dates (was Re: octal error)
James Kanze <james.kan  2008-05-11 08:37:57 
Re: Dates (was Re: octal error)
Andy Champ <no.way@[EM  2008-05-11 21:26:28 
Re: Dates (was Re: octal error)
James Kanze <james.kan  2008-05-11 16:41:24 
Re: Dates (was Re: octal error)
Andy Champ <no.way@[EM  2008-05-12 23:08:03 
Re: octal error
Nick Keighley <nick_ke  2008-05-12 06:47:48 
Re: Dates (was Re: octal error)
James Kanze <james.kan  2008-05-13 02:06:58 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Oct 15 22:41:12 CDT 2008.