Dates/Calendar

Sarah Reichelt sarah.reichelt at gmail.com
Thu Jan 12 20:53:49 EST 2006


> I'm reviving an calendar stack that I wrote years ago in Hypercard using
> WindowScript. I've got it working pretty well, but had a quick question
> - it appears that Windows XP is limited to dates on or since Jan 1, 1970
> and that OSX is limited to dates on or since Jan 1, 1935. Does that
> sound correct?
>

I don't know about any cross-platform differences with dates but the
two dates you quoted are both significant in Rev.

1/1/1970 is 0 seconds (at midnight GMT). This can cause strange things
to happen if you end up working with negative seconds.

35 is the default century cutoff, so any dates before 1935 will get
shown as 2035 after using the convert command, unless you change the
cutoff.

If you want to have a look at another calendar, mine is available at
<http://www.troz.net/Rev/libraries/Calendar.rev.gz>

Cheers,
Sarah



More information about the use-livecode mailing list