Dean Blackketter
1809d67746
Merge branch 'master' of https://github.com/arduino-libraries/NTPClient
2019-07-04 12:19:42 -07:00
Dean Blackketter
63f122946c
Add setRetryInterval() method
2018-10-20 10:41:27 -07:00
Peeter Normak
6bb8cdafc7
added method for changing time server
2018-06-27 12:23:36 +02:00
Tamas Karpati
10125217d9
Make getter methods const
2018-06-27 12:22:18 +02:00
Kosh
70d6ec4e90
Changed timeOffset from int to long to support timezones with more than 32000 seconds difference from GMT (eg, Australia +10 (36000)) ( #42 )
2018-06-27 12:17:09 +02:00
pabloandresm
0825e0cc07
fixes updateInterval & lastUpdate variable type
2018-06-27 12:12:09 +02:00
Dean Blackketter
182d69ddb9
Fix handling of last packet request timing
2017-01-10 09:29:15 -08:00
Dean Blackketter
a76f5957bf
Added a callback facility to notify user of updated time.
...
Accuracy is improved by using the fractional portion of seconds.
Make millisecond accurate time available via new getEpochMillis()
function.
2017-01-09 07:49:57 -08:00
Dean Blackketter
5ef4d5400f
Added updated() method to see if the time has ever been updated.
2016-12-09 20:35:20 -08:00
Dean Blackketter
b68746a87a
Make update() non-blocking.
2016-10-11 14:37:32 -07:00
Uli
ac19e0d7db
Added functions for changing the timeOffset and updateInterval later
...
I added two functions:
```cpp
setTimeOffset(int timeOffset)
```
Allows you to set the offset at a later stage (e.g. upon timezone
changes or change from summertime to standard time)
```cpp
setUpdateInterval(int updateInterval)
```
Allows to set the interval at a later point. This was helpful when not
setting an offset at initialization and e.g. for other sync times during
special occasions.
2016-05-14 12:04:18 +02:00
Sandeep Mistry
fe79989b8b
Change return type of get components to int
2016-04-18 15:08:38 -04:00
Sandeep Mistry
9229123274
Rename getRawTime to getEpochTime
2016-04-15 09:09:23 -04:00
Sandeep Mistry
b0776ef19c
Return result of update() and forceUpdate()
2016-04-15 09:06:30 -04:00
Sandeep Mistry
0167eaed14
Add flag to track if UDP was setup, setup in update if it hasn't been
2016-04-15 09:03:45 -04:00
Sandeep Mistry
20bcfe4c6a
Add end() API
2016-04-15 09:03:45 -04:00
Sandeep Mistry
5eff0bd78e
Add begin API
...
I’ve made calling this mandatory for now.
2016-04-15 09:03:45 -04:00
Sandeep Mistry
1fabfc5b8d
Add UDP instance argument in constructor to support more architectures
2016-04-08 16:34:51 -04:00
david
846351ce49
Adding support for getting numerical day of the week where 0 = Sunday
2016-03-30 22:26:04 -07:00
Fabrice Weinberg
7f05bf9e4d
Remove .begin() from API
2015-12-12 17:21:39 +01:00
Fabrice Weinberg
eae9724b10
Fix basic example
2015-12-12 16:36:34 +01:00
Fabrice Weinberg
35e6016872
Fix formatting
2015-12-12 16:35:04 +01:00
Fabrice Weinberg
25797f1f86
Initial commit
2015-12-08 17:21:16 +01:00