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