Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

How to convert a date time field to epoch time?

$
0
0
Hi, I am looking to format my current time to epoch time (as we need to calculate some math function on time) Time format for **incidentEndTimeStr** looks like this: `4/11/16 2:52` And used the eval command and strptime function below to change the format, but it doesn't work. Can you please assist? eval incidentEndTime = strptime(incidentEndTimeStr, "%m/%d/%Y %I:%M") OR eval incidentEndTime = strptime(incidentEndTimeStr, "%m/%d/%Y %H:%M") Thanks

Viewing all articles
Browse latest Browse all 47296

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>