Solved

set (Adjust) system Time

Posted on 2004-09-11
5
168 Views
Last Modified: 2011-12-13
How to Set (Adjust ) windows Clock (Date And Time ) programaticlly
0
Comment
Question by:Prof_MAM
  • 2
5 Comments
 
LVL 13

Accepted Solution

by:
BlackTigerX earned 30 total points
ID: 12037301
var
  st:TSystemTime;
begin
  DateTimeToSystemTime(Now, st); //change "Now" by the time you want to change it to
  Windows.SetLocalTime(st) //and this function takes care of actually changing the time
end;
0
 
LVL 13

Expert Comment

by:BlackTigerX
ID: 12037305
just note that you need to have some specific privileges if the code runs in a NT OS
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

776 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