Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > time functions


Reply
 
Thread Tools Display Modes
  #1  
Old 11-22-2001, 10:44 PM
khl623
Guest
 
Posts: n/a
Question time functions


Hi, I would like to know if there are any Win32 API like ctime, gmtime, etc

Reply With Quote
  #2  
Old 11-23-2001, 02:46 AM
Squirm's Avatar
Squirm Squirm is offline
Political Coder

Retired Moderator
* Guru *
 
Join Date: Mar 2001
Location: London, England
Posts: 8,037
Default Re: time functions

If you could explain what those two functions actually do then I might be able to help. If there is not a pure API solution to it I am sure that between us we can write some come to emulate such functions. [img]images/icons/smile.gif[/img]
__________________
Search the forums | Use [vb][/vb] tags | Still IRCing
Reply With Quote
  #3  
Old 11-26-2001, 04:50 AM
Cimperiali
Guest
 
Posts: n/a
Smile Re: time functions

These you may find useful. To know more about the following, you can download Api-Guide, a free tool you can find at:
'URL: http://www.allapi.net/


The FileTimeToLocalFileTime function converts a file time based on the Coordinated Universal Time (UTC) to a local file time.

The FileTimeToSystemTime function converts a 64-bit file time to system time format.

The GetLocalTime function retrieves the current local date and time.

The GetSystemTime function retrieves the current system date and time. The system time is expressed in Coordinated Universal Time (UTC).

The GetSystemTimeAdjustment function determines whether the system is applying periodic time adjustments to its time-of-day clock at each clock interrupt, along with the value and period of any such adjustments. Note that the period of such adjustments is equivalent to the time period between clock interrupts.

The LocalFileTimeToFileTime function converts a local file time to a file time based on the Coordinated Universal Time (UTC).

The SetFileTime function sets the date and time that a file was created, last accessed, or last modified.

The SetSystemTime function sets the current system time and date. The system time is expressed in Coordinated Universal Time (UTC).

The SystemTimeToFileTime function converts a system time to a file time.
Reply With Quote
  #4  
Old 11-27-2001, 05:03 PM
loquin's Avatar
loquin loquin is offline
Google Hound

Retired Moderator
* Guru *
 
Join Date: Nov 2001
Location: Arizona, USA
Posts: 12,378
Default Re: time functions

The common Controls Replacement Project (CCRP) has a high precision timer (true millisecond resolution) that you can download. While they've put new development on the shelf, all their existing code is available. I've used the timer, & it works well. You don't have to have a form to use it, and it won't stop timing when a modal form or control is opened.

They're at http://www.mvps.org/ccrp/
__________________
Lou
"I have my standards. They may be low, but I have them!" ~ Bette Middler
"It's a book about a Spanish guy called Manual. You should read it." ~ Dilbert
"To understand recursion, you must first understand recursion." ~ unknown
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->