Hello,
I would like to convert all possible values set in a time input to epoch time format. This means that it should manage values like:
-d@d @w now
i have found similar threads like this which recommend the relative_time() function, but it doesn't manage all cases. I also found a thread about filtering all values in a time input within a search:
| where if("$time_input.earliest$"!="0" AND "$time_input.earliest$"!="",_time>=if(replace("$time_input.earliest$","\d","")!="",relative_time(now(),if("$time_input.earliest$"="now","-0m","$time_input.earliest$")),"$time_input.earliest$"),0=0) AND if("$time_input.latest$"!="0" AND "$time_input.latest$"!="",_time<if(replace("$time_input.latest$","\d","")!="",relative_time(now(),if("$time_input.latest$"="now","-0m","$time_input.latest$")),"$time_input.latest$"),0=0)
but I cannot figure out how to convert this for use in an eval
Could somebody help me out?
Thank you and best regards,
Andrew
... View more