From 02369bb5b4f027d1f2545b7db6456d36a2c7d47a Mon Sep 17 00:00:00 2001 From: SanJacobs Date: Fri, 15 Apr 2022 17:20:37 +0200 Subject: timeprint() can now handle timeblocks --- src/time.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/time.cpp') diff --git a/src/time.cpp b/src/time.cpp index 0d97a09..1262d57 100755 --- a/src/time.cpp +++ b/src/time.cpp @@ -75,6 +75,11 @@ std::string timeprint(moment input_moment) { return output; } +std::string timeprint(timeblock input_timeblock) { + std::string output{timeprint(input_timeblock.start) + " --> " + timeprint(input_timeblock.end)}; + return output; +} + int days_in(int month, int year) { // Kind of a stupid and slow way to do this // But it's nice to have it as a function -- cgit v1.2.1