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



For DST, if your pulling the offset now then it will adjust based on the
dates already.
Don

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

Dennis Lovelady wrote:
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

That is SLICK! I thought I'd come up with a simple solution (SUBDUR),
but this is even better (and doesn't require the time zone to be either
hardcoded or explicitly retrieved).

Thanks. About the only thing mine has to recommend it is that it works
in the default activation group, which isn't really a factor, since
yours will also work with ACTGRP(*CALLER), if necessary.

The only potential issue I can see is with Daylight Saving Time.

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