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;
Class that holds the date-time as the components (year, month, day, hour, minute, second) without reg...
void printTo(Print &printer) const
Print LocalDateTime to 'printer' in ISO 8601 format.
static LocalDateTime 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 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.
OffsetDateTime()
Constructor.
void printTo(Print &printer) const
Print OffsetDateTime to 'printer' in ISO 8601 format.
static OffsetDateTime forError()
Factory method that returns an instance whose isError() is true.
static OffsetDateTime forDateString(const char *dateString)
Factory method.
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 TimeOffset forOffsetStringChainable(const char *&offsetString)
Variant of forOffsetString() that updates the string pointer to the next unprocessed character.