AceTime  0.1
Date and time classes for Arduino that supports the TZ DAtabase, and a system clock synchronized from an NTP server or an RTC chip.
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 }
void printTo(Print &printer) const
Print to given printer.
Definition: TimePeriod.cpp:8