Epoch (Unix time)
|
01-06-2018, 06:07 PM
(This post was last modified: 01-06-2018 08:47 PM by salvomic.)
Post: #1
|
|||
|
|||
Epoch (Unix time)
hi,
here it is a possible implementation of epoch (unix time, second's number from 1970 Jan 1 at midnight) for the Prime. See here for the definition. • epoch(date, time, timezone) returns epoch number given date (i.e. 2018.0106, -1 for current Date), time (i.e. 15°22'30'', -1 for current Time), time zone (0 for UTC/GMT, +1, -1...) • epoch2date(epoch, timezone) returns a list with date and time (format: {2018.0106, 15°22'30''}) given epoch number of seconds and timezone. Every values converted in GMT/UTC time Code:
Enjoy! Salvo *** Original idea: epoch for HP-41CX ∫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 (Unix time) - salvomic - 01-06-2018 06:07 PM
RE: Epoch (Unix time) - salvomic - 01-06-2018, 09:39 PM
|
User(s) browsing this thread: 1 Guest(s)