ntp

Will a NTP client work against a SNTP server?

SNTP is a simplification of the full NTP specification. I'd like to use a full NTP client against the internal SNTP server incorporated in Windows XP. Will that work or is a full NTP server required for the NTP client to work? ...

How do you compute the client/server timegap?

I'm developing a client/server software, and I'm searching the best way to keep my client clocks in sync with the server clock. Of course, I can't use NTP because I don't want to touch the system clock. I'm just trying to compute a timegap so that I can add it to every single datetime received from the server to convert it into a 'local...

synchronize clocks over internet

I am sending real-time-critical data over the internet between two dedicated computers, using my own protocol. There is, of course, latency involved. For debugging and optimization, I like to have both computers use the same timebase. I.e, I need to know the time difference of their clocks so that I can judge the latencies better. Of ...

Java NTP client

I need my software to communicate with an NTP server to determine the local clock offset. I have tried using the org.apache.commons.net.ntp package, but its implementation is rather poor when running on Windows, because of the use of System.currentTimeMillis() to determine the time before and after the NTP packet exchange. As you may or ...

How to Query an NTP Server from C#

All I need is a way to query an NTP Server from C# to get the Date Time of the NTP Server returned as either a string or as a DateTime. How is this possibly in its simplest form ...

How Does the Network Time Protocol Work?

The Wikipedia entry doesn't give details and the RFC is way too dense. Does anyone around here know, in a very general way, how NTP works? I'm looking for an overview that explains how Marzullo's algorithm (or a modification of it) is employed to translate a timestamp on a server into a timestamp on a client. Specifically what mechanism...

Handling Y2.036K & Y2.038K bugs.

Hi All, I am currently working on a project with a requirement that our software must operate until at least 2050. Recently we have run into problems dealing with the Y2.036K "bug" in the NTP protocol and also the Y2.038K bug. Basically, our software must continue to run past these dates with all data recorded using correct time stamps....

NTP Y2038 & Y2036

Hi, I am currently investigating the implications of the year 2036 and 2038 rollover bugs for a particular project. The software implemented by this project must be capable of running beyond these two dates. My initial research shows that the NTP timestamp rollover in 2036 is actually non-issues as the protocol holds up. My current p...

Using the system time for node locked licensing

I have node-locked licensing working, using the MAC address and system time. We're concerned that people will just edit their system date to extend a license, so I've tried getting the real date from an machine in the NTP pool. That works, but then obviously you can't use the product without being online, and it doesn't seem to be 100% r...

linux - detecting change of system time

Is there a way to get notified when there is update to the system time from a time-server or due to DST change? I am after an API/system call or equivalent. It is part or my effort to optimize generating a value for something similar to SQL NOW() to an hour granularity, without using SQL. ...

Network Time Protocol for iPhone

I am writing an application that requires accurate timing. After asking this question, I have decided to investigate using NTP or maybe Simple NTP. Is there any open source implementation of these protocols for the iPhone? So far I have managed to find a broken link. I am also aware that NTP has a C reference implementation, so I am try...

Time Syncronization via Web Service Call

Say are dealing with a Windows network that for internet access must pass through a firewall that you have no control over. Said firewall apparently blocks the known time protocols (NTP,daytime,etc) and you know from experience that those who control it will not allow any exceptions. Is it possible to sync this "Windows" (could be linu...

Ntpd monitoring

Is it possible to monitor an ntpd server running on windows using snmp ( or possibly something else ) I couldn't find any documentation on the subject. I'm interested in any information the server can provide, like current date / time, connection status... All I know about the ntp server for now is that it comes from here I would grea...

Create ntp time stamp from gettimeofday

I need to calculate an ntp time stamp using gettimeofday. Below is how I've done it with comments on method. Look good to you guys? (minus error checking). Also, here's a codepad link. #include <unistd.h> #include <sys/time.h> const unsigned long EPOCH = 2208988800UL; // delta between epoch time and ntp time const double NTP_SCALE_FRAC...

Windows API to trigger the time syncronization

Is there a windows API that would achieve the equivalent of cliking the "Update now" button in the "Date and time properties"/"Internet time" tab (opened by double clicking the clock in the taskbar)? Is there a way to monitor when the time syncronization is trigered by windows and when it succeeds or fails? ...

Keep time in sync among servers without internet connection

I have 5 servers on a LAN without Internet connection. I need them to keep the clock in sync among them. I could configure them as NTP peers, and set a high stratum for the local clock of one of them. In this way, the other four would sync with that clock. What I actually want, is them to agree on a time using all of the 5 local clocks...

How to connect to time server for getting the current time settings ? Also is there any time server at all??

My android app requires to get the current date and time from internet. I can't rely on the date from the phone How is it possible to get the time from internet. what are the available time servers ? ...

convert NTP time to Human-readable time

hello all. i have managed to make a NTP request and retrieve the server time from it's NTP response. i want to convert this number to a Human-readable time, writing in C++. can some one help me ? as example you can look at: http://www.4webhelp.net/us/timestamp.php?action=stamp&amp;stamp=771554255&amp;timezone=0 once you set the timestamp...

NTP Client using the Windows API

I'm maintaining a legacy system (pre .NET). Is there any way to fetch the time from an NTP server using the Windows API? Failing that, I could probably create a COM object with .NET to do it, but I would rather not go to that effort. ...

what is 'frequency difference' which NTP try to sync ?

As defined in NTP rfc "The goal of the NTP algorithms is to minimize both the time difference and frequency difference between UTC and the system clock." I can understand 'time difference' but what is 'frequency difference' which NTP try to sync ? ...