Hey everyone,
I'm having simple question. In the policies there is this operator we could use to format datetimes.
In the docs it just says this:
-
<$DATETIME(FORMAT,VALUE)>
, to convert the format of dates from the common format to the UNIX systems time (Epoch time) format.
So value would be my variable, but what is format? The format of my input? Shouldn't that be recognized anyways?
And also the field in the policy says its the other way round?!
So whatever comes first if I'm having a date like that "2024-06-20 07:21:20" would it then be
"<$DATETIME(<$DATA:datetime>,yyyy-mm-dd hh:mm:ss)>"?
It's very confusing because the $MATCH operator mentioned above is used differently as it is just triggered with $MATCH and then the variables are used. Why is $DATETIME triggerd within the <> brackets?