Re: age calculation on Windows vs Mac

2011-07-20 Thread Bill Vlahos
Bob, I'm glad you like InfoWallet. Thanks for the kind words. This code originally came from this awesome list. Bill Vlahos _ InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure. On Jul 20, 2011, at 9:21 AM, B

Re: age calculation on Windows vs Mac

2011-07-20 Thread Bob Sneidar
I purchased Infowallet, (it's awesome) and so feel it's alright to scavenge your bit of code. :-) Bob On Jul 19, 2011, at 4:24 PM, Bill Vlahos wrote: > The problem is the epoch date in Windows is 1970 and LiveCode can't deal with > dates earlier than that in Windows. You will need to use a VB

Re: age calculation on Windows vs Mac

2011-07-20 Thread André Bisseret
Bonjour, After following the quoted adv!ces from SparkOut, I found a handler given in 2006 by Peter Brigham on nabble; it is running well on PC (it avoid the 1970 barrier!) Thank you Peter ;-)) When age < 4 (baby), I need to get it in month so I keep the handler from Jim Ault (thank you Jim

Re: age calculation on Windows vs Mac

2011-07-20 Thread André Bisseret
Le 20 juil. 2011 à 09:49, SparkOut a écrit : > As well as changing your handler, which is unfortunately necessary at the > moment, if you have access to the QCC you could vote for bug #4941 Done; in fact, I discovered that I had already put 5 votes for this bug, quite a long time ago ;-)) > an

Re: age calculation on Windows vs Mac

2011-07-20 Thread André Bisseret
Le 20 juil. 2011 à 09:49, SparkOut a écrit : > As well as changing your handler, which is unfortunately necessary at the > moment, it is a pity indeed ; I am wasting a lot of time :-(( > if you have access to the QCC you could vote for bug #4941 and/or > message support and bring awareness back

Re: age calculation on Windows vs Mac

2011-07-20 Thread SparkOut
As well as changing your handler, which is unfortunately necessary at the moment, if you have access to the QCC you could vote for bug #4941 and/or message support and bring awareness back to this. It's not that Livecode "can't" determine pre epoch dates on Windows - it's just that the implementati

Re: age calculation on Windows vs Mac

2011-07-20 Thread André Bisseret
Pete, Ken, SparkOut, Bill, Thank you very much for your attention and your answers. This morning, I am going to change my handler in order to get windows accepting it!! I will let you know my result Wonderful list ;-)) André Le 20 juil. 2011 à 01:24, Bill Vlahos a écrit : > The problem i

Re: age calculation on Windows vs Mac

2011-07-19 Thread Bill Vlahos
The problem is the epoch date in Windows is 1970 and LiveCode can't deal with dates earlier than that in Windows. You will need to use a VBScript. Here is what I use in InfoWallet which handles Windows, Mac, and Linux correctly which was based on code provided by folks on this list. on calcAge

Re: age calculation on Windows vs Mac

2011-07-19 Thread SparkOut
I don't know why this is the case, because Windows can obviously calculate dates prior to the 1970 start of epoch in other applications... but something to do with the method LC uses to hook into a date function based on the epoch will fail. Try: put the date into tDate convert tDate to dateItems

Re: age calculation on Windows vs Mac

2011-07-19 Thread Pete
Sounds like time for using Julian Days for the calculation. Per Ken, take a look at Sarah's date conversion routines at www.troz.net(they include Julian day conversions). Also, if you happen to be using an sql database in your application, there are SELECT statements that will do date calculations

Re: age calculation on Windows vs Mac

2011-07-19 Thread Ken Ray
On Jul 19, 2011, at 11:40 AM, Pete wrote: > 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 form

Re: age calculation on Windows vs Mac

2011-07-19 Thread André Bisseret
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

Re: age calculation on Windows vs Mac

2011-07-19 Thread Pete
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