Page 1 of 1
centuryCutoff
Posted: Wed Mar 04, 2009 10:15 pm
by NZN37
Is there a way to disable the centuryCutoff property?
Posted: Thu Mar 05, 2009 6:34 am
by Janschenkel
No, there isn't - it's necessary for Revolution to be able to determine whether a date is in the 20th or 21st century. What problem are you encountering that needs to be solved?
Jan Schenkel.
Posted: Thu Mar 05, 2009 8:01 am
by NZN37
I need to run dates a few hundred years forward in an astronomy program.
Posted: Thu Mar 05, 2009 10:42 am
by Mark
Dear NZN37,
Why don't you use four-digit years?
Kind regards,
Mark
Posted: Thu Mar 05, 2009 7:47 pm
by NZN37
"Why don't you use four-digit years? "
CenturyCutoff still interferes.
Posted: Thu Mar 05, 2009 8:29 pm
by Mark
Dear NZN37,
You might want to provide just a little bit more info to enable me and others to help you.
Kind regards,
Mark
Posted: Thu Mar 05, 2009 8:52 pm
by NZN37
Mark wrote:
You might want to provide just a little bit more info to enable me and others to help you.
If this handler produced the correct date everything would be fine:
on mouseUp
put the long date into temp
convert temp to seconds
repeat 100
add 1.6*365.25*86400 to temp
end repeat
convert temp to long date
put temp
end mouseUp
Posted: Thu Mar 05, 2009 9:12 pm
by Mark
Dear NZN37,
After running your script, I get
Sunday, March 5, 2169
in the message box. Is this wrong? What should it be?
Best,
Mark
Posted: Thu Mar 05, 2009 9:31 pm
by NZN37
Mark wrote:After running your script, I get Sunday, March 5, 2169
I get Friday, December 13, 1901.
Posted: Thu Mar 05, 2009 10:27 pm
by mroam
I'm also getting "Monday, March 6, 2169" on my computer (mac, osX 10.5). What kind of machine are you on, and what do you get if you try the following script?
Code: Select all
local temp
put the long date into temp
convert temp to seconds
convert temp to internet date
answer temp
maybe the long date or the dateFormat are working strangely on your computer.
Posted: Thu Mar 05, 2009 10:42 pm
by NZN37
mroam wrote:I'm also getting "Monday, March 6, 2169" on my computer (mac, osX 10.5). What kind of machine are you on, and what do you get if you try the following script?
Code: Select all
local temp
put the long date into temp
convert temp to seconds
convert temp to internet date
answer temp
maybe the long date or the dateFormat are working strangely on your computer.
I get Thu, 5 Mar 2009 02:00:00 -0700 using your code. Mac osX 10.5.6, Rev version 2.7.2