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

Follow-Ups:
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.