views:

73

answers:

1

I'm building a PHP web application and need to know what the current date/time is. I cannot depend on the server's setting. Any web service I can use? I know there will be some delay accessing the time via web service, but I am fine with something that is not accurate to the last millisecond.

+4  A: 

Yes, get it from a public NTP server.

Look at a PHP implementation here:

http://www.kloth.net/software/timesrv1.php

Vitor Py