Questions tagged [ntp]

Network Time Protocol is an application level network protocol that is used for synchronizing clocks of computer systems. The term also refers to the reference software implementation.

The Network Time Protocol version 4 is defined in RFC 5905, RFC 5906, RFC 5907, and RFC 5908. NTPv4 is also suitable for the Internet Protocol version 6 address family.

The reference software implementation is provided by the NTP Public Services Project.

http://en.wikipedia.org/wiki/Network_Time_Protocol

693 questions
5
votes
5 answers

S3 RequestTimeTooSkewed error due to local machine's clock skew

While working on my local machine I have been trying to upload images (which uploads them immediately to the amazon server), but it was giving me a bug (RequestTimeTooSkewed Error using PHP S3 Class), I could figure out that it's a time zone issue…
Mainhattan
  • 51
  • 1
  • 2
5
votes
2 answers

Get UTC date from Web in android application

I want a UTC date for my android application which is device (and User) independent. I have heard some thing like getting date from NTP server but cannot find any help from google or SO. So can anyone help me with some code snippets or links. Thanks…
Name is Nilay
  • 2,743
  • 4
  • 35
  • 77
5
votes
1 answer

Huge Time Drift in VMWare Windows 7 guest

I'm running a Windows 7 guest in VMWare and it is losing as much as 5 seconds per minute. I resynched the time through Windows about 25 minutes ago and it has lost 00:01:20 so far. It is obviously inconsistant as I frequently find the clock to be…
Deruwyn
  • 63
  • 1
  • 5
5
votes
2 answers

Get time/date from server with sntp(windows c++)

I'm searching for a working code in c/c++ that gets the time and date from the server(ntp.belnet.be). It works with UDP and uses port 123. Can someone help? //sending pakket memset(&sntp_msg_header, 0, sizeof sntp_msg_header); sntp_msg_header.flags…
user1765216
  • 111
  • 2
  • 2
  • 8
4
votes
4 answers

.Net API to get exact time for Internet Time Server

I need to know if there is any .NET API exists to fetch the current time from Internet Time Server, so that changing the system time at the client will not affect the integrity of my application.
Saqwes
  • 325
  • 3
  • 12
4
votes
3 answers

Getting time from public time server using TimeTCPClient

I try to use the following code to obtain time from public time server. package aaa; import java.util.Arrays; import java.util.List; import org.apache.commons.net.TimeTCPClient; public final class Main { public static java.util.Date…
Cheok Yan Cheng
  • 47,586
  • 132
  • 466
  • 875
4
votes
2 answers

Unable to get time form the NTP server in esp8266, arduino

I know I am successfully connected to the network as it's visible in my phone's hotspot. However I am unable to get the time using library through NTP server. Thanks in advance. I will really appreciate your…
112 Boss
  • 68
  • 5
4
votes
2 answers

Does the JVM keep its time synced with the OS?

I am working on an application which is time-centric. My code frequently calls System.currentTimeMillis() and System.nanoTime(). So I want to make sure these timestamp calls are perfectly synced with the OS. When and how does the JVM sync its…
HyperX Pro
  • 158
  • 2
  • 9
4
votes
1 answer

Getting error while syncing using ntp by running command sudo ntpd -gq

I'm getting an error while syncing using ntp by running the command sudo ntpd -gq. 28 Sep 05:19:30 ntpd[1919]: receive: KoD packet from 172.19.79.12 has inconsistent xmt/org/rec timestamps. Ignoring. What does it mean? How can I fix it?
parag gupta
  • 84
  • 1
  • 5
4
votes
3 answers

Convert NTP timestamp to utc

Whats the easiest way to convert an NTP timestamp to utc. I know it's in NTP, I can convert it into any other format. Thanks. Bob.
scope_creep
  • 4,213
  • 11
  • 35
  • 64
4
votes
3 answers

Replace busybox ntpd with ntp from meta-openembedded

I would like to replace the standard ntpd that comes with busybox with the full NTP server released in meta-openembedded. However, I can't find the configuration or Yocto variable that sets that this version of the busybox should not have ntpd. What…
ilya1725
  • 4,496
  • 7
  • 43
  • 68
4
votes
3 answers

How good is NTP for distributed time synchronization?

How accurate is NTP for keeping a set of servers time synchronized? I'm writing a service which requires a set of servers (some acting as clients, some as servers) synchronized to second level granularity. I'm wondering if NTP is the best thing to…
Darren Vaman
  • 43
  • 1
  • 4
4
votes
1 answer

NTP Audit - failed adjtimex syscall?

As part of a new PCI-DSS server deployment I am in the process of configuring a fully auditable NTP time change history. All is working as expected however I am now seeing audit logs written every single second relating to time change operations.…
puppyFlo
  • 445
  • 4
  • 16
4
votes
2 answers

NTP implementation C

Can someone find what I'm missing on my ntp implementation? I'm programming an 32-bit microcontroller ARM Cortex M3. I have three functions - wifiSend which calls the bsdUdpClient and bsdUdpServer. The bsdUdpClient sends data to the server and…
lmbcerqueira
  • 187
  • 1
  • 1
  • 14
4
votes
1 answer

How to do incremental time leap to avoid data loss

Background : Hi, I am currently working with an old Linux SBC system. It uses BusyBox v1.00-rc2 which is old and had limited functionality. (nope, upgrade is not an option). This SBC was hooked up with several sensor, record the value and time…
Mie
  • 41
  • 4