Home | Gallery | Forum | Services | Webmail | Archive | Links | Contact Us | About Us
OS2 World.Com Forum
OS2 World.Com Online Discussion Forum.
Index / OS/2 - General / Programming
author message
Get the current time.
Post a new topic Reply to this Topic Printable Version of this Topic Forward this Topic to your Friend Topic Commands (for administrator or moderators only)
sleepy
Normal member
in user

View this member's profileSearch all posts from this memberSend an email to this member
posts: 3
since: 30 Sep, 2002
1. Get the current time.
Reply to this topic with quote Modify your message
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.

Date: 16 Oct, 2002 on 17:20
Brennor
Normal member
in user

View this member's profileSearch all posts from this memberSend an email to this member
posts: 9
since: 30 Sep, 2002
2. Re:Get the current time.
Reply to this topic with quote Modify your message

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
Date: 16 Oct, 2002 on 21:44
Get the current time.
Post a new topic Reply to this Topic Printable Version of this Topic Forward this Topic to your Friend Topic Commands (for administrator or moderators only)
All times are CET+1. < Prev. | P. 1 | Next >
Go to:
 

Powered by UltraBoard 2000 Standard Edition,
Copyright © UltraScripts.com, Inc. 1999-2000.
Home | Gallery | Forums | Services | Webmail | Archive | Links | Contact Us | About Us
OS2 World.Com 2000-2004