Solved

setSystemTime API is not setting time properly??

Posted on 2002-06-26
2
400 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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

778 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