age calculation on Windows vs Mac
André Bisseret
andre.bisseret at wanadoo.fr
Tue Jul 19 13:06:22 EDT 2011
Thanks a lot Pete for this information;
i was not aware of these "epoch" dates format
I am going to dig around that
I much appreciate your prompt help
André
Le 19 juil. 2011 à 18:40, Pete a écrit :
> Hi Andre,
> I don't have a definitive answer for you but this sounds like it is
> connected to "epoch" dates which are the number of days since Jan 1, 1970.
> I'm guessing that somewhere along the line, your dates are being converted
> to the epoch format on the WIndows platform that would certainly cause a
> problem for dates prior to 1970. I don't know why that would be different
> in Windows than OS X.
>
> Hope that might help track down the problem.
>
> Pete
> Molly's Revenge <http://www.mollysrevenge.com>
>
>
>
>
> On Tue, Jul 19, 2011 at 9:23 AM, André Bisseret
> <andre.bisseret at wanadoo.fr>wrote:
>
>> Bonjour,
>>
>> I am a Mac user but I recently bought a PC (windows 7) in order to test my
>> standalones for windows more quickly.
>>
>> I am fighting for hours now with the following problem :
>>
>> In an app., I have a handler that calculates the age from the short birth
>> date (thanks to Jim Ault who gave it on the list).
>> The birth date is jj/mm/AAAA or jj/mm/AA as well.
>>
>> This handler works fine on Mac, but not on windows.
>>
>> On windows, the age is invariably 100 if the birth year < 1970. (with
>> JJ/MM/AA or JJ/MM/AAAA (as bad ;-(
>> If the birth year > = 1970 then the age is correct.
>>
>> I tried to play with the centuryCutOff but without any success (on
>> windows).
>>
>> I am not familiar with Windows : what am I missing ? Is it a matter of
>> computer setting or should I program differently for windows than for mac !?
>>
>> Thanks a lot in advance for any help
>>
>> Best regards from Grenoble
>>
>> André
>>
>> P.S. By the way, I used to use a search engine (if I well remember, it was
>> in the help menu of livecode) I do not find it any more; has it been
>> suppressed ? (or here again, I am missing something !)
>> _______________________________________________
>> 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
>>
>>
> _______________________________________________
> 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