× 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 Dennis,

Your code seems unnecessarily complex...

1) You have a pointer declared (p_curr_time), and you assign an address to it, but you never seem to use it?

2) You declare a data structure (time_t) that contains only one subfield (time_t_num). Why not just pass time_t_num directly?

The time() API is a standard API in POSIX, it's unlikely to change, right?



On 11/21/2011 7:21 PM, 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

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


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.