Date bug?
BNig
niggemann at uni-wh.de
Sun Jan 2 05:35:13 EST 2011
Hi Chipp,
it is daylight saving that throws things off.
For the people in Europe it is the 31st of october that will not work with
your original code.
As Sarah (who knows all about dates) recomends: always calculate from 12 h
noon for calculating dates.
--------------
on mouseUp
put "10/31/2010" into tDate
convert tDate to dateItems
put 12 into item 4 of tDate
answer nextDayDate(tDate)
end mouseUp
function nextDayDate pDate
convert pDate to seconds
put 60*60*24 into tSecondsInDay
add tSecondsInDay to pDate
convert pDate to short date
return pDate
end nextDayDate
------------------
european version.
Kind regards
Bernd
--
View this message in context: http://runtime-revolution.278305.n4.nabble.com/Date-bug-tp3170675p3170805.html
Sent from the Revolution - User mailing list archive at Nabble.com.
More information about the use-livecode
mailing list