Scott Baret Posted January 2, 2012 Report Share Posted January 2, 2012 As most of us are aware, our old Macs can't be set beyond 2019. Now I'm not going to take this project up myself, as I don't have the time to do the research and programming, but I thought I'd throw this one into the ring for those who enjoy programming and need a Retro Challenge idea. Basically, we need someone to write a control panel to set the clock to later years. Our Macs can go beyond 2019, so why not do something to make that possible? Quote Link to post Share on other sites
Anonymous Freak Posted January 2, 2012 Report Share Posted January 2, 2012 Or you could just set your clock back to 1992, as that year is the same, calendar-wise, as 2020 - and would gain you another 28 years before you'd have to reset again. (Or even set to 1964 or even 1936, same thing, only longer reset-period.) That's the joy of the calendar system we use, there are only so many variations possible. (Seven non-leap-year and seven leap-year.) Which means calendars repeat themselves on a 28-year (7*4, the interval between repeating leap years,) basis - the non-leap-years repeat themselves even more often, but leap years are a good basis, because it guarantees you won't accidentally slip in or out of the leap year cycle. Which is why it's a good thing 2020 (a leap year) is the first not-possible year on a Mac. You just have to reset back to an equivalent leap-year calendar. Quote Link to post Share on other sites
PowerPup Posted January 2, 2012 Report Share Posted January 2, 2012 Woah AF, congrats on having your post the first mind-boggling thing I've read in the new year. (I had to re-read it once or twice to get what you were saying. Awesome facts there.) Found this little page on Apple.com. Turns out that they setup Mac OS to handle a range of only 100 years because System 6 only displayed two digit years. Guess we'll just have to figure out the "Mac OS supplied routine" it mentions. The page also mentions that DOS has a time range of 1980 to 2099. I was curious to find out what the maximum year for Mac OS X (Unix) is. Turns out that Unix has it's own 2038 "Millennium Bug." Anyway, this does sound like a good programming challenge. But I'm going to be busy with learning Java and Math this collage quarter. So maybe I can take a look during Spring break or Summer even. If someone does takes this project up I'd love to be kept up to date on their progress. Quote Link to post Share on other sites
applefreak Posted January 2, 2012 Report Share Posted January 2, 2012 it is possible to set a date beyond 2019, up to the year 2040, by using the Macintosh Toolbox call SetDateTime source Quote Link to post Share on other sites
ClassicHasClass Posted January 3, 2012 Report Share Posted January 3, 2012 The Network Time control panel probably will fix this, if you have an NTP or TIME source. Otherwise, it's pretty easy to write a simple program to call the Toolbox routine. A couple lines of Modula-2 would do it and run on any classic Mac. Quote Link to post Share on other sites
redrouteone Posted September 9, 2012 Report Share Posted September 9, 2012 ...That's the joy of the calendar system we use, there are only so many variations possible. (Seven non-leap-year and seven leap-year.) Which means calendars repeat themselves on a 28-year (7*4, the interval between repeating leap years,)... My Grandmother (Who grew up in the Great Depression), used to save old calendars. Because they would be good again in 28 years. I found this out when I ask her why she had a calendar from 1958 up in 1986. I really should write a book with all of the money saving things she would do. There where some really good things and some really funny ones. Quote Link to post Share on other sites
bbraun Posted November 17, 2012 Report Share Posted November 17, 2012 I somehow missed this. FWIW, user adh1197 asked me for this back in February. Anyway, I hacked up this control panel that works on System 7, but probably not System 6. If there's interest in System 6, I can fix it. adh1197 did the icon. It looks terrible (I suck at UI), but should be functional. If you are UI inclined, you can tweak the DITL resource using Resedit to make it look a little nicer. Quote Link to post Share on other sites
TylerEss Posted November 17, 2012 Report Share Posted November 17, 2012 What's the max year the Toolbox date and time routines can handle? I seem to remember something in TidBITS about this, and it's like 25000CE or something crazy like that. Am I just making things up again? Quote Link to post Share on other sites
bbraun Posted November 17, 2012 Report Share Posted November 17, 2012 SetDateTime() takes a 32bit quantity specifying the number of seconds since January 1, 1904. I'll just assume that's 2040 like previously mentioned. That's what this technote seems to say too. Quote Link to post Share on other sites
TylerEss Posted November 17, 2012 Report Share Posted November 17, 2012 Thanks for the link! I see, now. A LongDateTime goes up to 30,000CE but can only be used for calcuations / application-specific work. The system's conception of date and time is limited to a regular DateTime, which as you said only goes to 2040. Quote Link to post Share on other sites
bbraun Posted November 17, 2012 Report Share Posted November 17, 2012 Alright, it was eating at me knowing this is such a simple control panel and wasn't working on System 6. Fixed. Quote Link to post Share on other sites
beachycove Posted November 20, 2012 Report Share Posted November 20, 2012 To live that long is not in my capacitor. Quote Link to post Share on other sites
NJRoadfan Posted July 8, 2013 Report Share Posted July 8, 2013 2040 is the "limit" for the built in clock for both pre-OS X Macs and the Apple IIgs. For the latter system there are other issues to deal with besides patching the OS clock routines. http://macgui.com/usenet/?group=1&id=168821 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.