Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

set (Adjust) system Time

Posted on 2004-09-11
5
169 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Mydac connection data base issue 3 166
Using idhttp to login to instagram 2 106
Performance of SQL statement 37 127
Firemonkey android show image from resource ? 1 46
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

808 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