Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6720649
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:14:14+00:00 2026-05-26T09:14:14+00:00

On a windows machine, is there a way to find out if the time

  • 0

On a windows machine, is there a way to find out if the time has been changed backwards without continually monitoring for WM_TIMECHANGE messages?

For example, I would like to make the first thing my application does on startup is see if the time has been changed back since I last run the application.

As far as I can tell, the only way to see a change is to look at the WM_TIMECHANGE message, but I will only see that if my application is running.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T09:14:15+00:00Added an answer on May 26, 2026 at 9:14 am

    Yes. You can read the Windows Event Logs and look for changes to system time. (System time changes are one of the system events that are automatically logged.) For example, I just tweaked my system time by a few seconds and the following appeared in the System Event log:

    Information 10/21/2011 11:16:26 AM Kernel-General 1 None

    The system time has changed to ‎2011‎-‎10‎-‎21T16:16:26.000000000Z
    from ‎2011‎-‎10‎-‎21T16:16:26.000000000Z.

    You can use the Win32 API to get access to the event logs then query for these events to determine if the time was indeed altered. What’s great about this solution is that it’s built-in and always running. No need to monitor events via a custom service etc. You just query the OS’s data.

    This is still not a bullet-proof solution since people with admin rights can chance settings, clear logs etc. But you would definitely layperson-proof your app. System event logs are not something regular Windows users think about.

    The XML for that particular event: (de-identified for privacy & security)

      <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
      <Provider Name="Microsoft-Windows-Kernel-General" 
            Guid="{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}" /> 
      <EventID>1</EventID> 
      <Version>0</Version> 
      <Level>4</Level> 
      <Task>0</Task> 
      <Opcode>0</Opcode> 
      <Keywords>0x8000000000000010</Keywords> 
      <TimeCreated SystemTime="2011-10-21T16:16:26.001000000Z" /> 
      <EventRecordID>138478</EventRecordID> 
      <Correlation /> 
      <Execution ProcessID="40044" ThreadID="50016" /> 
      <Channel>System</Channel> 
      <Computer>xxxxx.xxxxxxxxx.org</Computer> 
      <Security UserID="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" /> 
      </System>
      <EventData>
      <Data Name="NewTime">2011-10-21T16:16:26.000000000Z</Data> 
      <Data Name="OldTime">2011-10-21T16:16:26.000000000Z</Data> 
      </EventData>
      </Event>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way to get a list of time zones available on a
I'm trying to figure out a way to log off users in local Windows
I'm hoping to make a quick script to log-out/restart windows at a set time.
Is there any difference in behavior of HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run registry key, when an user Logs
Are there any known issues with ASP.Net Ajax and IE6 in Windows 2000 machines
Apache on a windows machine running as SYSTEM. What user and password should be
On my Windows machine -- I typically test different versions of Internet Explorer using
I've got a java application on a windows machine which pins the CPU from
I need to install a MySql server on my Windows machine to run a
I have a directory of ZIP files (created on a Windows machine). I can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.