How to get the actual time using API

accesser2003

Registered User.
Local time
Tomorrow, 01:12
Joined
Jun 2, 2007
Messages
124
What I want is to get the actual date/time, even the user changes the date/time of the PC by setting the "Date and Time properties" window which shown in the system tray.

Thanks,
 
All you can do using API is retrieve the System time I think, unless you setup some server someplace that has the time to be retrieved.

Easiest would be to have a DB server like Oracle or SQL Serve where you select the time from.
 
eh?

doesn't time() do that for you

msgbox(time)
 
Gemma,

I think the OP is looking for a way to "deal" with the user tampering with the time on the local machine. Time() will retrieve the local time of the local machine.
Ergo, not a solution.
 
i see - could you get this from a web site somewhere?

although you would never be able to use date() or now() oe time() etc anywhere if you didnt trust the local clock
 
Yep, no date, now time etc...

That is why I was/am suggesting taking a select from a (central) oracle/sql server.

Or taking it from a website might be an option, tho I wouldnt know how to do that and/or which website to go to and if it would even be possible to do that with the security on databases/code etc now a days.
 

Users who are viewing this thread

Back
Top Bottom