epoch Prime
|
01-05-2018, 08:07 PM
(This post was last modified: 01-05-2018 08:34 PM by salvomic.)
Post: #7
|
|||
|
|||
RE: epoch Prime
(01-05-2018 07:51 PM)Dieter Wrote: However, I don't know if the line that checks whether a date is before or after 15 Oct 1582 (switch from Julian to Gregorian calendar) is correct. But this can be omitted anyway since in 1582 there was no Unix. At least as far as I know. ;-)No, I think there was no Unix in 1582 Quote:... You do not have to do this manually. IIRC since 2015 the Prime includes the required commands, e.g. DDAYS and DATEADD. Take a look at the manual. yes, I know those functions, definitely, and I suggested to use them to make the program... as far as the MAKELIST and "lista", the list is intended so: • with listnow() we get the time now, i.e. {2018,1,5.87368055555} where the fraction .8736 is the time in /24 • so julianday({2018,1,5.87368055555}) or julianday(listnow) returns 2458124.37368, the Julian Date. Other astronomical date functions in Effemeridi and Astrolab 4 app ... EDIT: following your idea to use Julian Day, I tried this: • julianday({1970,1,1}) -> 2440587.5 • julianday(listnow) -> 2458124.38559 :: in the same time I started the Bill's program (EPOCH) on my HP-41CX, calculated for my time zone (+1h) with 3600 in 00 register and it returned epoch = 1515183311 • (2458124.38559-2440587.5) (julianday now - Julianday 1970 Jan 1), that is 17536.8559 days • 86400*17536.8559 returns 1515186914.98 last result is 3603.98 secs greater that EPOCH program: something went wrong: about 1 hour, and this should be the GMT difference. So we should assemble these data to get epoch, but perhaps there is a way more concise to get it... ∫aL√0mic (IT9CLU) :: HP Prime 50g 41CX 71b 42s 39s 35s 12C 15C - DM42, DM41X - WP34s Prime Soft. Lib |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
epoch Prime - salvomic - 01-05-2018, 05:00 PM
RE: epoch Prime - pier4r - 01-05-2018, 06:03 PM
RE: epoch Prime - Dieter - 01-05-2018, 07:30 PM
RE: epoch Prime - salvomic - 01-05-2018, 07:42 PM
RE: epoch Prime - Dieter - 01-05-2018, 07:51 PM
RE: epoch Prime - salvomic - 01-05-2018 08:07 PM
RE: epoch Prime - Dieter - 01-05-2018, 08:47 PM
RE: epoch Prime - salvomic - 01-05-2018, 09:10 PM
RE: epoch Prime - Dieter - 01-05-2018, 09:27 PM
RE: epoch Prime - salvomic - 01-05-2018, 09:36 PM
RE: epoch Prime - Dieter - 01-05-2018, 10:07 PM
RE: epoch Prime - salvomic - 01-05-2018, 10:16 PM
RE: epoch Prime - Dieter - 01-05-2018, 10:48 PM
RE: epoch Prime - pier4r - 01-05-2018, 09:40 PM
RE: epoch Prime - salvomic - 01-05-2018, 09:44 PM
RE: epoch Prime - Dieter - 01-05-2018, 09:56 PM
RE: epoch Prime - salvomic - 01-05-2018, 06:17 PM
RE: epoch Prime - salvomic - 01-05-2018, 11:26 PM
RE: epoch Prime - Dieter - 01-06-2018, 08:53 AM
RE: epoch Prime - salvomic - 01-06-2018, 09:28 AM
RE: epoch Prime - Dieter - 01-06-2018, 09:41 AM
RE: epoch Prime - Didier Lachieze - 01-06-2018, 09:50 AM
RE: epoch Prime - StephenG1CMZ - 01-06-2018, 09:40 AM
RE: epoch Prime - pier4r - 01-06-2018, 10:46 AM
RE: epoch Prime - Dieter - 01-06-2018, 12:42 PM
RE: epoch Prime - salvomic - 01-06-2018, 01:07 PM
RE: epoch Prime - salvomic - 01-06-2018, 02:45 PM
RE: epoch Prime - Dieter - 01-06-2018, 06:26 PM
RE: epoch Prime - StephenG1CMZ - 01-06-2018, 08:26 PM
RE: epoch Prime - Dieter - 01-06-2018, 08:37 PM
RE: epoch Prime - pier4r - 01-06-2018, 09:59 PM
RE: epoch Prime - salvomic - 01-06-2018, 10:07 PM
RE: epoch Prime - pier4r - 01-06-2018, 10:55 PM
RE: epoch Prime - pier4r - 01-06-2018, 03:28 PM
RE: epoch Prime - salvomic - 01-06-2018, 03:45 PM
RE: epoch Prime - salvomic - 01-06-2018, 04:10 PM
RE: epoch Prime - StephenG1CMZ - 01-06-2018, 06:54 PM
RE: epoch Prime - salvomic - 01-06-2018, 07:58 PM
RE: epoch Prime - salvomic - 01-06-2018, 08:45 PM
RE: epoch Prime - Dieter - 01-06-2018, 08:59 PM
RE: epoch Prime - salvomic - 01-06-2018, 09:01 PM
RE: epoch Prime - Dieter - 01-06-2018, 11:07 PM
RE: epoch Prime - StephenG1CMZ - 01-06-2018, 11:24 PM
RE: epoch Prime - salvomic - 01-07-2018, 09:26 AM
RE: epoch Prime - Dieter - 01-07-2018, 06:22 PM
RE: epoch Prime - salvomic - 01-07-2018, 06:28 PM
|
User(s) browsing this thread: