Skip to content
Update time on Arduino via NTP
Branch: master
Clone or download
Latest commit 1c35093 Jul 13, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples/BasicNtp Update BasicNtp.ino Jul 13, 2018 readme update Mar 23, 2017
simpleNTP.cpp Version 1.0 May 3, 2016
simpleNTP.h Version 1.0 May 3, 2016


The aim of simpleNTP is help Arduino time synchronization via NTP.

With an arduino connected to Internet or to an intranet with a NTP server, it's posible to Arduino have timekeeping ability.

Network Time Protocol NTP - NTP servers give time in Coordinanted Universal Time (UTC)

Based on

######aprendiendoarduino by jecrespo May 2016

#####TODO List:

  • constructor with nameserver (DNS lookup host to connect)
  • update local time using Time and Timezone
  • add support for DST (Daylight saving time)
  • readNTP returns local time instead of UTC
  • pass DST configuration to simpleNTP object
  • add DST and zones preconfigured for countries
  • add NTP server lists
  • leap second support?, leap year supported by Time library
  • ethernet2 support?
  • example with simpleNTP as sync source in Time function
  • example update interval with Time library functions setSyncProvider and setSyncInterval

This library is designed in conjunction with the Arduino Time Library and Arduino Timezone Library. Arduino Time Library: Arduino Timezone Library:

simple-NTP library relies on Time Library for timekeeping functionality and Timezone library for DST and zone adjust time functionality

You can’t perform that action at this time.