OS2 World.Com Forum

Subject  :  Get the current time.
Author  :  sleepy
Date  :  16 Oct, 2002 on 17:20
Hi,

I'm looking for a function wich can give me the current time from the os.
And I would know what kind of format will return this function.

Thank You guys.


Subject  :  Re:Get the current time.
Author  :  Brennor rpufky1@rochester.rr.com
Date  :  16 Oct, 2002 on 21:44

sleepy (Oct 16, 2002 19:20):
I'm looking for a function wich can give me the current time from the os.
And I would know what kind of format will return this function.

Hello sleepy,

Do you happen to have the OS/2 ToolKit? If so, which version?
I just did a quick grep for 'gettime' in the 4.5 ToolKit, and came up with a couple of matches.

In sys/time.h it says that there is a timeval structure that is returned by a gettimeofday() OS call. It returns the current time in secs and nsecs.

Is this what you had in mind, or were you looking for something else?

HTH


Check out the pictures of my baby girl!
http://brennor.dyndns.org/Daphne

Powered by UltraBoard 2000 <www.ub2k.com>