Arithmetic operations on dates ?

Michael D Mays michael.rr at mdmays.com
Sun Mar 6 11:56:40 EST 2005


Paul,

If you say

  put "2005,2,29,0,0,0,0" into someDate
  convert someDate to dateItems

someDate will be "2005,3,1,0,0,0,3"

If I say

  put "2005,3,6,23,59,59,0" into aTimeDate
  add 1 to 1 to item 6 of aTimeDate
  convert aTimeDate to long date

aTimeDate is
   'Monday, March 7, 2005'

What days is Rev starting the day at 1 am or 2 am or 3 am?

Michael
On Feb 26, 2005, at 3:40 PM, SimPLsol at aol.com wrote:

> Sorry Michael,
>      Your dateItems script is logical - it just will not work reliably 
> with
> Revolution - because...
> Some days in Rev. start at 1 am, most start at 2 am, and even 3 am. 
> This is
> again related to the crazy way Rev. handles daylight saving time. Also 
> Rev.
> does not convert 2005,2,29, etc. to 2005,3,1 etc.


More information about the use-livecode mailing list