Hi,
I try to calculate the duration
I have extracted 2 fields, start_time and end_time
--
I believe both times should be in the exact same format in order to successful calculate the duration
start_time = 2022-06-03T02_11_50
end_time = 2022-06-03T03:48:06
--
I have been puzzling for some time now, but how do I get the start_time in the same format as the end_time? ...
Thanks for help in advance!
Edwin
Both need to be in epoch format to do calculations such as difference on
| eval start_time = strptime(start_time,"%Y-%m-%dT%H_%M_%S")
| eval end_time = strptime(end_time,"%Y-%m-%dT%H:%M:%S")
That actually worked 🙂
Both need to be in epoch format to do calculations such as difference on
| eval start_time = strptime(start_time,"%Y-%m-%dT%H_%M_%S")
| eval end_time = strptime(end_time,"%Y-%m-%dT%H:%M:%S")