Julian Dates?

David Vaughan drvaughan55 at mac.com
Thu Apr 11 17:52:01 EDT 2002


On Friday, April 12, 2002, at 06:11 , Rob Cozens wrote:

>> But what happens when you try to manipulate your negative time?
>>
>> If I "get -86400" and then "convert it to dateItems" I get "Invalid 
>> Date."
>
> David, et al,
>
> My apologies on this one.  Perhaps it has something to do with the lack 
> of persistence of the value of it?
>
> Anyway, in a script:
>
> on testDate
>   ask "Enter a date"
>   convert it to seconds
>   put it into zaDate
>   convert it to dateItems
>   put zaDate&&"="&&it
> end testDate
>
> -86400 does not give me "Invalid Date", but a date in 1969.

Also, one does not normally start by entering a date in seconds ;-) but 
with a Julian date which happens to be negative seconds when converted, 
or the result of a calculation which likewise may be prior to 1970. All 
of these are handled impeccably in the date range suggested by Dar, from 
1901. Failing after 2035 looks a bit of a worry though. I may be dead in 
sufficient time but how do I deal with data for younger people?

cheers
David
> --
> Rob Cozens
> CCW, Serendipity Software Company
> http://www.oenolog.com/who.htm
>
> "And I, which was two fooles, do so grow three;
> Who are a little wise, the best fooles bee."
>
> from "The Triple Foole" by John Donne (1572-1631)
> _______________________________________________
> 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