ZonedTime.h
Go to the documentation of this file.
Class to manage a NUL-terminated C-style string When storing persistent strings in RAM the regular St...
Definition: CString.h:27
String toISO8601(const ZoneInfo *zone=nullptr) const
Get human readable date and time.
String format(const char *formatString, const ZoneInfo *zone=nullptr) const
Create string formatted with time and date placeholders.
const char * c_str() const
Get a constant (un-modifiable) pointer to String content.
Definition: WString.h:609
A timestamp representing a UTC 'point in time' associated with a specific timezone.
Definition: ZonedTime.h:25
ZonedTime toUtc() const
Get a ZonedTime instance translated into the UTC zone This does nothing more than replace the contain...
Definition: ZonedTime.h:55
ZonedTime(time_t utc, const DateTime::ZoneInfo &zoneInfo)
Construct a zoned time.
Definition: ZonedTime.h:32
ZonedTime(time_t utc=0)
Construct a time in the UTC zone.
Definition: ZonedTime.h:39
ZonedTime(const ZonedTime &other)=default
static void setDefaultFormat(const String &format)
Set the default format for displaying zoned times.
Definition: ZonedTime.h:130
String toString() const
Obtain default formatted string.
Definition: ZonedTime.h:122
const DateTime::ZoneInfo & getZoneInfo() const
Get instance zone information.
Definition: ZonedTime.h:71
time_t local() const
Obtain the time_t value adjusted for local time.
Definition: ZonedTime.h:63
Format format
Type for timezone abbreviation such as "GMT", "EEST".
Definition: DateTime.h:148
Basic information required when displaying or handling local times.
Definition: DateTime.h:144
1.9.1