Oops... I forgot to say, you can test this at
http://www.esqsoft.com/javascript_examples/date-to-epoch.htm to find out
what the correct value should be. (The system on which I work now is a
GMT+0 system, so kind of hard to test this sort of thing. ;) )

Dennis Lovelady
http://www.linkedin.com/in/dennislovelady
--
I was married by a judge. I should have asked for a jury.
-- Groucho Marx


I have created a sample RPG module (and a bare-bones program for testing
purposes) that I believe will return UTC seconds since epoch. If you find
that it returns local-time epoch, let me know and I will send the
correction.
Code is at: http://code.midrange.com/2040a00004.html

It's been a while since I've dealt with this stuff, so I'm a bit rusty.
This
is based on my C version of currepoch, which you can find at
http://www.lovelady.com/unixsrc

Dennis Lovelady
http://www.linkedin.com/in/dennislovelady
--
Transmitted on 100% recycled electrons


Would anybody happen to know how to get the current system time as the
"number of seconds since January 1, 1970 00:00:00 GMT"? Other than by
adjusting a current timestamp to GMT, constructing one for January 1,
1970 00:00:00, and doing an RPG SUBDUR? Or is that actually the easiest
way?

--
JHHL
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.