Re: LC Date Conversions post 2035
Had to test this out of curiosity. Indeed, when using 2-digit year, that is the result, as expected and explained in the dictionary entry for centuryCutoff. But how far does the 4-digit conversion work? Here’s what I’ve found: - On Windows 10, it works until year 3000, and stops working on year 3001 (it just returns the input without converting). - On MacOS 12.6 it works at least until year 2.100.000.000 (which is a Sunday… :). By that time we should be expecting LC v14 or something, or maybe that LC rules the galaxy, so I hope that’s sorted by then… :D ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: LC Date Conversions post 2035
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 | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On November 6, 2022 8:28:34 PM Mark Clark via use-livecode 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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: LC Date Conversions post 2035
That's the centuryCutoff property in action, but it's only supposed to apply to 2-digit years. So I think something is amiss since you supply a 4-digit year. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On November 6, 2022 8:28:34 PM Mark Clark via use-livecode 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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
LC Date Conversions post 2035
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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode