On 06/19/2010 02:35 AM, Andrew Douglas Pitonyak wrote:
I verified strange behavior with CDateFromISO years ago. I am testing
again, and I am trying to figure out if the problem is related to
64-bits (my version) as opposed to a 32-bit version.
What is the output from the following two commands? I understand the
strange value in the second line, but, late time I ran the first line,
I received 03/14/1432 (This assumes USA, but other Locale is OK for
this test).
Print CDateFromISO("14320313") ' 03/04/1432
Print CDateFromISO("18991230") '00:00:00
OK, I got it. This appears to be a bug fix... The ISO standard requires
that dates be continuous. The current behavior is correct. I did not
bother to verify if the behavior changed for the ISO standard in 2004.
--
Andrew Pitonyak
My Macro Document: http://www.pitonyak.org/AndrewMacro.odt
My Book: http://www.hentzenwerke.com/catalog/oome.htm
Info: http://www.pitonyak.org/oo.php
See Also: http://documentation.openoffice.org/HOW_TO/index.html
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]