interop >> System clock events

by Andreas Hansson » Fri, 12 May 2006 20:21:13 GMT

Hi,

Is there anyway to be notified with the system clock changes? I don't mean
when the user changes the settings, but each time (in my case) it swicthes
minute? I have some code I would like to run each time the minute changes of
the system clock. I could use a Timer object and set it's intervall to a
minute, but then it would only execute within a given minute of the system
clock, I want a trigger when it changes.




Similar Threads

1. System clock events

Hi,

Is there anyway to be notified with the system clock changes? I don't mean
when the user changes the settings, but each time (in my case) it swicthes
minute? I have some code I would like to run each time the minute changes of
the system clock. I could use a Timer object and set it's intervall to a
minute, but then it would only execute within a given minute of the system
clock, I want a trigger when it changes.

I dont mind using interop if thats what is required 


2. Set system clock on Pocket PC

3. Setting the system clock

Is it possible to set the system clock programmatically from within the .net
framework? Or do I have to create a native-code dll in C++ or the like in
order to accomplish this?

Thanks,
Torgeir


4. Setting System Clock - Microsoft .NET Framework

5. How to know when a user change the time of system clock

Hi group!!  I've been making an application in which I need to know if a
user changed the time of the system clock.   Is there a log where is
registered that information or any API to consult?  Thanks so much for your
help.


6. How to determine if the system clock has been set back in time - Microsoft .NET Framework

7. Updating The System Clock?

Greetings,

I am developing an app that utilizes a custom internet-based
replication process.  Every record in my database has a DateAdded and
DateUpdated column to facilitate this.  There are many satellite
locations and one master home office location whose database is
considered the master database.

I haven't run into any major issues yet.  To further guarantee that I
will not, I want to have all satellites periodically via a web service
request the home office location's clock time.

Getting the home office clock time is easy -- I'll just use
DateTime.Now.

Once a satellite location acquires this info I need to update the
satellite machine's clock time.  What is the .NET command for doing
this?  I suspect the difficult of my finding this command deals with a
security issue...

Mario T. Lanza
Clarity Information Architecture, Inc.

8. Replace System tray clock - CSharp/C#