AceTime
1.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.
src
ace_time
BasicZoneProcessor.cpp
1
/*
2
* MIT License
3
* Copyright (c) 2019 Brian T. Park
4
*/
5
6
#include <Print.h>
7
#include "BasicZone.h"
8
#include "BasicZoneProcessor.h"
9
10
namespace
ace_time {
11
12
void
BasicZoneProcessor::printTo
(Print& printer)
const
{
13
printer.print(
BasicZone
(mZoneInfo.zoneInfo()).name());
14
}
15
16
void
BasicZoneProcessor::printShortTo
(Print& printer)
const
{
17
printer.print(
BasicZone
(mZoneInfo.zoneInfo()).shortName());
18
}
19
20
}
21
ace_time::BasicZone
A thin wrapper around a basic::ZoneInfo data structure to provide a stable API access to some useful ...
Definition:
BasicZone.h:22
ace_time::BasicZoneProcessor::printTo
void printTo(Print &printer) const override
Print a human-readable identifier (e.g.
Definition:
BasicZoneProcessor.cpp:12
ace_time::BasicZoneProcessor::printShortTo
void printShortTo(Print &printer) const override
Print a short human-readable identifier (e.g.
Definition:
BasicZoneProcessor.cpp:16
Generated by
1.8.17