You are viewing a single comment's thread. Return to all comments →
This must use the library time parsing functions, anything else is very bad (I hope your language supplies such a library)
in C#
public static string timeConversion(string s) => DateTime.Parse(s).ToString("HH:mm:ss");
Seems like cookies are disabled on this browser, please enable them to open this website
Time Conversion
You are viewing a single comment's thread. Return to all comments →
This must use the library time parsing functions, anything else is very bad (I hope your language supplies such a library)
in C#
public static string timeConversion(string s) => DateTime.Parse(s).ToString("HH:mm:ss");