Added printTimestamp function in "HH:MM" format
parent
f5b0496975
commit
140815cca4
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue