× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi James,

I had to do something like this a month or 2 ago.

I converted EPOCH (January 1, 1970 00:00:00 GMT) to Lilian seconds once using CEEISEC, then got UTC in Lilian seconds using CEEUTC as needed, and then subtracted EPOCH Lilian seconds from UTC Lilian seconds.

Unsure as to whether this is the easiest or best. You could possibly find out EPOCH in Lilian seconds and hardcode this as a "magic number" for efficiency.

Regards,

Kevin Wright

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx]On Behalf Of James Lampert
Sent: Tuesday, 22 November 2011 10:07 AM
To: Midrange Systems Technical Discussion
Subject: "Number of seconds since January 1, 1970 00:00:00 GMT" for
OAuth


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
--

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.