Data manipulation

$epochTimeInSeconds()

Returns current time in Unix, epoch format (in seconds)

$epochTimeInSeconds()                             -> 1558960405

$dateToEpoch(dateString)

Converts date to epoch. Pass datetime string as argument in one of the following formats:
yyyy-MM-dd'T'HH:mm:ssZ
ddd, d MMM yyyy HH:mm:ss Z
ddd MMM d HH:mm:ss Z T yyyy

$dateToEpoch(2006-01-02T15:04:05.000Z)            -> 1136214245
$dateToEpoch(Mon, 02 Jan 2006 15:04:05 +0000)     -> 1136214245
$dateToEpoch(Mon Jan 2 15:04:05 +0000 MST 2006)   -> 1136214245

wrong usage:
$dateToEpoch(2006-01-02)                          -> 0
$dateToEpoch(abc)                                 -> 0

$jwtValidate(JWTString, HMACSecretString)

Validates JWT (json web token)

$jwtValidate(eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c, your-256-bit-secret) -> true
$jwtValidate(eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c, 256-bit-secret)      -> false

$len($jsonList)

Returns length of a json array saved in apimation variable

$len(["One", "Two"])                              -> 2
$len([])                                          -> 0

wrong usage:
$len()                                            -> $len()

$replace("contentString", "replacableSubstring", "targetSubstring")

Replaces passed argument replacableSubstring in contentString with targetSubstring (desired substitution)

$replace("Apples_are_in_the_box", "_", " ")       -> Apples are in the box
$replace("To get her", " ", "")                   -> Together

wrong usage:
$replace(To get her, " ")                         -> $replace(To get her, " ")

$unescapeHtml(content)

Unescapes HTML characters from content passed by argument

$unescapeHtml(&lt;html&gt;&lt;/html&gt;)          -> <html></html>
$unescapeHtml(abc)                                -> abc


results matching ""

    No results matching ""