Skip to content

Commit 4938c40

Browse files
minborgsundararajana
authored andcommittedSep 20, 2022
Fix formatting in sample/time
1 parent 4e296f3 commit 4938c40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎samples/time/PanamaTime.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public static void main(String[] args) {
4040
var now = session.allocate(C_LONG, System.currentTimeMillis() / 1000);
4141
MemorySegment time = tm.allocate(session);
4242
localtime_r(now, time);
43-
System.err.printf("Time = %d:%d\n", tm.tm_hour$get(time), tm.tm_min$get(time));
43+
System.err.printf("Time = %d:%02d\n", tm.tm_hour$get(time), tm.tm_min$get(time));
4444
}
4545
}
4646
}

0 commit comments

Comments
 (0)