Skip to content

Utilities

$bolt.uuid()

Generate UUID v4.

id = $bolt.uuid()  # "550e8400-e29b-41d4-a716-446655440000"

$bolt.unixtime()

Get current Unix timestamp (seconds).

ts = $bolt.unixtime()  # 1706889600

$bolt.unixtimeMs()

Get current Unix timestamp (milliseconds).

ts = $bolt.unixtimeMs()  # 1706889600123

$bolt.urlEncode(cStr)

URL-encode a string.

encoded = $bolt.urlEncode("hello world")  # "hello%20world"

$bolt.urlDecode(cStr)

URL-decode a string.

decoded = $bolt.urlDecode("hello%20world")  # "hello world"