Splunk Time
Splunk Time
2017-03-02T09:41:38.405Z
Like this (The trailing Z is for Zulu, AKA GMT so you need to grab the TZ with %Z):
| eval time=strptime(timeValue,"%Y-%m-%dT%H:%M:%S.%3N%Z")
eval TimeDiff=itime-ptime
===================================================================================
============
%Y-%m-%d 2017-12-31
%y-%m-%d 17-12-31
%b %d, %Y Feb 11, 2017
q|%d%b '%y = %Y-%m-%d| q|23 Apr '17 = 2017-04-23|
%c The date and time in the current locale's format as defined by the server's
operating system. For example, Mon Jul 13 09:30:00 2017 for US English on Linux.
%+ The date and time with time zone in the current locale's format as defined by
the server's operating system. For example, Mon Jul 13 09:30:00 PDT 2017 for US
English on Linux.
%y Year as a decimal number, without the century. (00 to 99). Leading zeros are
accepted but not required.
%Y Year as a decimal number with century. For example, 2017.