LC Date Conversions post 2035
J. Landman Gay
jacque at hyperactivesw.com
Mon Nov 7 04:43:32 EST 2022
That's the centuryCutoff in action, but I think something is amiss since
it's only supposed to apply to 2-digit years and you supply a 4-digit year.
--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On November 6, 2022 8:28:34 PM Mark Clark via use-livecode
<use-livecode at lists.runrev.com> wrote:
> I was testing one of the tools I use to handle licensing today and decided
> to run the series through a few iterations adding 2 years at a time. I
> noticed that my dates were reverting to the 20th c. Hmm, whoops.
>
> After a bit of head scratching I decided it wasn't just my doing.
>
> Date conversion sort of works but the output can lead to trouble in the
> future. I've done a few tests and some lengthy, but if anyone cares to
> perform the "short test," please do.
>
> Change your date to 12/31/2034; then change to 2035.
>
>
>
> run this:
>
> put the date into test
> convert test to dateitems
>
> answer item 1 of test --works in 2034; broken in 2035
>
>
> Mark
>
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list