Solved

setSystemTime API is not setting time properly??

Posted on 2002-06-26
2
392 Views
Last Modified: 2008-02-01
I tried all examples of setsystemtime api [AllApi example and even from microsoft] but none of them set my system date and time exactly what i write in code. i tried setting to 1:28 am it changes it to 7: pm or some thing like that. specially time [hour and minute] are not at all prescise.

I use windows98 OS.

Any help greatly appreciated.
0
Comment
Question by:sanjaykattimani
2 Comments
 
LVL 38

Accepted Solution

by:
PaulHews earned 400 total points
ID: 7112797
SetSystemTime will set your clock to UTC (Greenwich) time.  You can set your system time using the time statement.  Example

Time = TimeSerial(15, 35, 22)

Sets the time to 3:35:22 PM
0
 
LVL 3

Author Comment

by:sanjaykattimani
ID: 7113047
Thanks friend it works.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now