Arithmetic operations on dates ?
Sarah Reichelt
sarahr at genesearch.com.au
Mon Mar 7 18:29:19 EST 2005
> I don't see that days start a 2 am.
>
> If I have a list of dateItems
> 2005,3,8,23,59,59,0 (Tue March 8, 2005, one minute until midnight)
> and I add 2 to item six, convert the resulting list to dateItems, the
> list is
> 2005,3,8,0,0,1,4 (Wed March 9, 2005, one minute after midnight)
You have specified a time, so that is shown accurately in the dateitems.
>
> What are the circumstances and/or the script where the day is starting
> at 2 am?
Try this:
put the short date into tNow
convert tNow to dateItems
This will give you the correct date but the time shown will be 2 am.
Cheers,
Sarah
More information about the use-livecode
mailing list