centuryCutoff
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
centuryCutoff
Is there a way to disable the centuryCutoff property?
-
- VIP Livecode Opensource Backer
- Posts: 977
- Joined: Sat Apr 08, 2006 7:47 am
- Contact:
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.
Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com
www.quartam.com
Dear NZN37,
You might want to provide just a little bit more info to enable me and others to help you.
Kind regards,
Mark
You might want to provide just a little bit more info to enable me and others to help you.
Kind regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
If this handler produced the correct date everything would be fine:Mark wrote:
You might want to provide just a little bit more info to enable me and others to help you.
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
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
After running your script, I get
Sunday, March 5, 2169
in the message box. Is this wrong? What should it be?
Best,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
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?
maybe the long date or the dateFormat are working strangely on your computer.
Code: Select all
local temp
put the long date into temp
convert temp to seconds
convert temp to internet date
answer temp
I get Thu, 5 Mar 2009 02:00:00 -0700 using your code. Mac osX 10.5.6, Rev version 2.7.2mroam 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?
maybe the long date or the dateFormat are working strangely on your computer.Code: Select all
local temp put the long date into temp convert temp to seconds convert temp to internet date answer temp