Unix/Linux Epoch Time Converter..
|
12-31-2017, 12:55 AM
(This post was last modified: 12-31-2017 04:13 PM by Bill Duncan.)
Post: #1
|
|||
|
|||
Unix/Linux Epoch Time Converter..
Simple routine for unix epoch time conversions using hp-41 with time module (or 41CX et al). Useful if you're offline (on a train?) looking at log files..
Be sure to use a constant for reg 00 that is appropriate for your time zone and daylight savings time. (Seconds relative to GMT. Time zone given is Eastern Standard Time.) Initialize constants by running start of program. Uses local labels in user mode. "A" to get current epoch time. Enter: Date [Enter] Time "B" to get epoch time for any given date/time. The "C" routine will translate an epoch time to date/time values. Test in user mode by pressing "A" then "C". This should get you the current date/time. Cheers. Code:
|
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)