Skip to content

Commit

Permalink
define leap year
Browse files Browse the repository at this point in the history
  • Loading branch information
taranais committed Jul 31, 2017
1 parent 6577550 commit 1c341f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions NTPClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
#define SEVENZYYEARS 2208988800UL
#define NTP_PACKET_SIZE 48
#define NTP_DEFAULT_LOCAL_PORT 1337
#define LEAP_YEAR(Y) ( (Y>0) && !(Y%4) && ( (Y%100) || !(Y%400) ) )


class NTPClient {
private:
Expand Down

0 comments on commit 1c341f7

Please sign in to comment.