How do I get DateDiff functionality?
I can parse the start and end time from my log (they are like "11/4/2014 10:46:01 AM"), and I want to find durations in minutes.
Couldn't find anything in the documentation but I may have missed it.
Thanks!
-
You'll have to use parseDate (https://support.sumologic.com/entries/27867876-How-do-I-parse-a-date-string-) to convert the time to epoch milliseconds, then subtract, then divide out the milliseconds and seconds to get the difference in minutes.
Please sign in to leave a comment.
Comments
2 comments