How do I sort a Python list of time values? -
i have python list of time values extracted web log. have list in format of %h:%m:%s
. how sort time values in ascending order?
just sorted(time_list)
works fine.
>>> sorted(["14:10:01", "03:12:08"]) ["03:12:08", "14:10:01"]
Comments
Post a Comment