Skip to content
Snippets Groups Projects
Commit e03e835c authored by Moe Jette's avatar Moe Jette
Browse files

Change time format to look like that of squeue (with seconds added).

parent 102b1bff
No related branches found
No related tags found
No related merge requests found
...@@ -106,7 +106,7 @@ make_time_str (time_t *time, char *string) ...@@ -106,7 +106,7 @@ make_time_str (time_t *time, char *string)
struct tm time_tm; struct tm time_tm;
localtime_r (time, &time_tm); localtime_r (time, &time_tm);
sprintf ( string, "%d/%d,%d:%2.2d:%2.2d", (time_tm.tm_mon+1), time_tm.tm_mday, sprintf ( string, "%2.2u/%2.2u-%2.2u:%2.2u:%2.2u", (time_tm.tm_mon+1), time_tm.tm_mday,
time_tm.tm_hour, time_tm.tm_min, time_tm.tm_sec); time_tm.tm_hour, time_tm.tm_min, time_tm.tm_sec);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment