AceTime
0.3
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
TimePeriod.cpp
1
#include <Print.h>
// Print
2
#include "TimePeriod.h"
3
4
namespace
ace_time
{
5
6
using
common::printPad2;
7
8
void
TimePeriod::printTo
(Print& printer)
const
{
9
if
(mSign < 0) {
10
printer.print(
'-'
);
11
}
12
printPad2(printer, mHour);
13
printer.print(
':'
);
14
printPad2(printer, mMinute);
15
printer.print(
':'
);
16
printPad2(printer, mSecond);
17
}
18
19
}
ace_time
Definition:
BasicZoneSpecifier.cpp:4
ace_time::TimePeriod::printTo
void printTo(Print &printer) const
Print to given printer.
Definition:
TimePeriod.cpp:8
Generated by
1.8.13