diffdays
Sarah
sarahr at genesearch.com.au
Wed Jul 17 17:34:01 EDT 2002
You have entered a SHORT date for DateA but then the conversion is done
from a LONG date. Change the first convert line to say "from system
short date" or "from short date" and it should work fine.
Sarah
On Wednesday, July 17, 2002, at 03:42 PM, sims wrote:
> What is the best way if the date is much earlier?
>
> If I do the following, I get only 730 days:
>
>
> on mouseUp
> put "7/17/1900" into DateA
> convert DateA from system long date to seconds
> put "7/17/2002" into DateB
> convert DateB from short date to seconds
> put DateA - DateB into diff
> divide diff by 86400 -- No of seconds in 1 day
> if char 1 of diff = "-" then delete char 1 of diff
> put diff
> end mouseUp
>
>
> sims
>
>
>
>>
>> on mouseUp
>> put "dinsdag, 9 juli 2002" into DateA
>> convert DateA from system long date to seconds
>> put "7/17/02" into DateB
>> convert DateB from short date to seconds
>> put DateA - DateB into diff
>> divide diff by 86400 -- No of seconds in 1 day
>> if char 1 of diff = "-" then delete char 1 of diff
>> put diff
>> end mouseUp
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list