AceTime
1.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
/*
2
* MIT License
3
* Copyright (c) 2018 Brian T. Park
4
*/
5
6
#include <Print.h>
7
#include <AceCommon.h>
8
#include "TimePeriod.h"
9
10
using
ace_common::printPad2To;
11
12
namespace
ace_time {
13
14
void
TimePeriod::printTo
(Print& printer)
const
{
15
if
(mSign < 0) {
16
printer.print(
'-'
);
17
}
18
printPad2To(printer, mHour,
'0'
);
19
printer.print(
':'
);
20
printPad2To(printer, mMinute,
'0'
);
21
printer.print(
':'
);
22
printPad2To(printer, mSecond,
'0'
);
23
}
24
25
}
ace_time::TimePeriod::printTo
void printTo(Print &printer) const
Print to given printer.
Definition:
TimePeriod.cpp:14
Generated by
1.8.17