datetime - Python: Decimal into time format -
I want to convert decimal formats (HH, HHH) to a one time format HH: MM: SS
16, 16.00000572, 16.00000572, 16.00000954, 16.00001144, 16.0000247, 16.00002098, 16.0000248, 16.00002861, 16.00003052, 16.00003433, 16.00003624, 16.00003815, 16.00004196, 16.00004387, 16.00004768, 16.00004959, 16.00005341 / Pre> Is there a way to do this in Python?
Thanks
Believing the values:
< the code> [86]: DT [87] Import Detataim: data = [16], 16.00000381, 16.00000572, 16.00000 9 4, 16.00001144, 16.00001335, 16.00001717, 16.00001907, 16.000020 9 8, 16.0000248, 16.00002861, 16.00003052, 16.00003433, 16.00003624 , 16.00003815, 16.00004196, 16.00004387, 16.00004768, 16.00004959, 16.00005341] .... .... .... .... ...: ....: [88]: Map for data in X (str, [dt.Temoldata (second = x * 60 * 60.0)] [88]: ['16: 00: 00', '16: 00: 00.013716 ', '16: 00: 00.020592', '16: 00: 00.034344', ... '16: 00: 00.157932', '16: 00: 00.171648 ', '16: 00: 00.178524' , '16: 00: 00.192276']
Comments
Post a Comment