Re: time-server question
- From: "Mark Randall" <markyr@xxxxxxxxxxxxxx>
- Date: Tue, 28 Nov 2006 13:43:23 -0000
On windows computers there is no such thing as exact time and date. If you
ask a time server; by the time you ask the data is already out of date from
the trip time of the packets.
For second-resolution you should use time(NULL) or _time64(NULL) - both are
pretty much the same nowerdays based on PSDK 2005 defines.
use _tzset to get the second offset if you need to convert from UTC time( )
to local.
--
- Mark Randall
http://www.temporal-solutions.co.uk
http://www.awportals.com
"azsx" <radu_plugaru@xxxxxxxxx> wrote in message
news:1164719411.522211.268250@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi, i'm developing an application that at some level needs to find out
the exact time and date. For this I can't use the standard local time
getTime() f-tion. Do you know what should I do to get some data from
time-servers?
.
- Follow-Ups:
- Re: time-server question
- From: azsx
- Re: time-server question
- References:
- time-server question
- From: azsx
- time-server question
- Prev by Date: how to invoke the javascript function from activex
- Next by Date: Re: AfxMessageBox?
- Previous by thread: time-server question
- Next by thread: Re: time-server question
- Index(es):
Loading