SystemClock.h
Go to the documentation of this file.
27 };
Definition: SystemClock.h:35
const DateTime::ZoneInfo & getTimeZone() const
Get current time zone information.
Definition: SystemClock.h:107
void onCheckTimeZoneOffset(CheckTimeZoneOffset callback)
Set/clear a callback which is invoked whenever local time is queried.
Definition: SystemClock.h:132
Delegate< void(time_t systemTime)> CheckTimeZoneOffset
Optional callback which can be used to automate handling of timezone changes.
Definition: SystemClock.h:52
void setTimeZoneOffset(int seconds)
Sets the local time zone offset.
Definition: SystemClock.h:80
String getSystemTimeString(TimeZone timeType=eTZ_Local) const
Get current time as a string.
void setTimeZone(float localTimezoneOffset)
Set the local time zone offset in hours.
Definition: SystemClock.h:91
int getTimeZoneOffset() const
Get the current time zone offset.
Definition: SystemClock.h:115
bool isSet() const
Determine if setTime() has been called yet.
Definition: SystemClock.h:123
void setTimeZone(const DateTime::ZoneInfo &zoneInfo)
Set current time zone information.
Definition: SystemClock.h:99
Time< T > time(Unit unit, T value)
Helper function to create a Time and deduce the type.
Definition: NanoTime.h:432
Basic information required when displaying or handling local times.
Definition: DateTime.h:144
int16_t offsetMins
Offset from UTC in minutes.
Definition: DateTime.h:167
int offsetSecs() const
Get the offset in seconds so it can be added/subtracted directly from a time_t value.
Definition: DateTime.h:173
1.9.1