AceTime
1.7.1
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.
|
6 #include "LocalDateTime.h"
7 #include "OffsetDateTime.h"
13 printer.print(F(
"<Invalid OffsetDateTime>"));
18 mLocalDateTime.
printTo(printer);
25 if (strlen(dateString) < kDateStringLength) {
32 const char* s = dateString;
void printTo(Print &printer) const
Print OffsetDateTime to 'printer' in ISO 8601 format.
static OffsetDateTime forDateString(const char *dateString)
Factory method.
OffsetDateTime()
Constructor.
Class that holds the date-time as the components (year, month, day, hour, minute, second) without reg...
static TimeOffset forOffsetStringChainable(const char *&offsetString)
Variant of forOffsetString() that updates the string pointer to the next unprocessed character.
void printTo(Print &printer) const
Print LocalDateTime to 'printer' in ISO 8601 format.
A thin wrapper that represents a time offset from a reference point, usually 00:00 at UTC,...
void printTo(Print &printer) const
Print the human readable string.
static OffsetDateTime forDateStringChainable(const char *&dateString)
Variant of forDateString() that updates the pointer to the next unprocessed character.
The date (year, month, day), time (hour, minute, second) and offset from UTC (timeOffset).
static OffsetDateTime forError()
Factory method that returns an instance whose isError() is true.
static LocalDateTime forDateStringChainable(const char *&dateString)
Variant of forDateString() that updates the pointer to the next unprocessed character.
bool isError() const
Return true if any component indicates an error condition.