Getting Data In
Highlighted

How do I convert a time with no timezone to epoch?

Communicator

I'm using convert to change a time field to epoch. The time field has a bunch of different formats. I've got them all working except for values that have no time zone (e.g. "20180530104453"). for those, the convert command just returns the date in that same format. I'm using a timeformat of %Y%m%d%H%M%S. Any idea why it's not working?

0 Karma
Highlighted

Re: How do I convert a time with no timezone to epoch?

SplunkTrust
SplunkTrust

Have you tried strptime instead of `convert'?

---
If this reply helps you, an upvote would be appreciated.
0 Karma