AceTime  0.5.2
Date and time classes for Arduino that support timezones from the TZ Database, and a system clock that can synchronize from an NTP server or an RTC chip.
TimeKeeper.h
1 /*
2  * MIT License
3  * Copyright (c) 2018 Brian T. Park
4  */
5 
6 #ifndef ACE_TIME_TIME_KEEPER_H
7 #define ACE_TIME_TIME_KEEPER_H
8 
9 #include <stdint.h>
10 #include "TimeProvider.h"
11 
12 namespace ace_time {
13 namespace clock {
14 
19 class TimeKeeper: public TimeProvider {
20  public:
26  virtual void setNow(acetime_t epochSeconds) = 0;
27 };
28 
29 }
30 }
31 
32 #endif
Base class for objects that provide a source of time whose time cannot be changed by the end-user...
Definition: TimeProvider.h:20
virtual void setNow(acetime_t epochSeconds)=0
Set the time to the indicated seconds.
A TimeProvider whose time can be set by the end-user.
Definition: TimeKeeper.h:19