Skip navigation.
Home
The QNX Community Portal

View topic - timegm in QNX

timegm in QNX

Discussions, suggestions, requests about this website.

timegm in QNX

Postby robby0524 » Fri Oct 23, 2015 3:19 am

I will port program to QNX from linux. There are not timegm API in the QNX.
Anybody have a idea for me?
My version is QNX 6.5(IDE4.7)
The program of linux:

struct tm t;
memset ( &t , 0 , sizeof ( struct tm ) );
// 1984/01/01 00:00:00
t.tm_year = 84;
t.tm_mon = 0;
t.tm_mday = 1;
t.tm_hour = 0;
t.tm_min = 0;
t.tm_sec = 0;

return timegm ( &t );
robby0524
Active Member
 
Posts: 19
Joined: Tue Oct 21, 2014 5:26 am

Re: timegm in QNX

Postby Tim » Fri Oct 23, 2015 1:30 pm

http://www.opensource.apple.com/source/ ... m/timegm.c

Here is some open source of timegm()

Tim
Tim
Senior Member
 
Posts: 1389
Joined: Wed Mar 10, 2004 12:28 am


Return to OpenQNX Site

Who is online

Users browsing this forum: No registered users and 1 guest