WP34s: date functions and negative years
|
01-24-2015, 10:16 PM
(This post was last modified: 01-24-2015 10:35 PM by Dieter.)
Post: #19
|
|||
|
|||
RE: WP34s: date functions and negative years
(01-23-2015 05:21 PM)Dieter Wrote: And negative JDN input now throws a Domain error. That's fine, but I just noticed that on the other hand D–>J may return negative JDNs: the valid input range seems to be any date not earlier than 1 Jan 4800 B.C., i.e. –01.014799 which returns a Julian day number of –31776. Earlier dates, starting at 31 Dec 4801 B.C. (resp. –31.124800) throw a Domain error. So another fix will be required that sets the limit from year –4799 to –4712. That's the year starting with JDN 0. If I got it right, it seems to be line 120 in date.c. ;-) BTW, I see there is a compiler option INCLUDE_EASTER with code for calculating the easter date. Great! Why is this useful function missing in the current releases? The code also shows that the LEAP? test accepts either an integer year in X or a date in the currently set format. I always thought that the former was required while the manual says the latter is needed ("Takes x as a date in the format selected, extracts the year, and tests for a leap year"). Actually LEAP? works in both cases. Walter? Dieter |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)