Added printTimestamp function in "HH:MM" format

main
Anastasia Kisner 2024-10-26 22:29:41 +02:00
parent f5b0496975
commit 140815cca4
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ pub fn main () !void {
// Printet timestamp im Format HH:MM // Printet timestamp im Format HH:MM
pub fn printTimestamp(ts: *Timestamp) !void { pub fn printTimestamp(ts: *Timestamp) !void {
try writer.print("{d}:{d}", ts.*); try writer.print("{0d:0>2}:{1d:0>2}", .{ ts.hours, ts.minutes });
} }
pub fn printPlan() !void { pub fn printPlan() !void {