Skip to content

Utility Methods Reference

Qriist edited this page Sep 17, 2026 · 1 revision

The utility methods provide standalone helper functions for date handling, encoding, string comparison, and system inspection. These methods do not require a specific handle and operate independently.

Date & Time

Method Description libcurl Reference
GetDate(dateString, returnEpoch?) Parses a date string (RFC 822/2822, ISO 8601, etc.) into an AHK date or Unix epoch. curl_getdate
Timestamp(tsFormat := "Readable", scale := "float-seconds") Generates the current time in various common formats. —

Encoding & Decoding

Method Description libcurl Reference
EncodeBase64(input) Base64-encodes a String, Integer, Object, Array, Map, Buffer, or File. —
DecodeBase64(str, returnBuffer?, Base64URL?) Decodes a Base64 string (standard or URL-safe) into a String or Buffer. —
DecodeJwt(input) Decodes a JWT token into a Map containing header, payload, and signature. —

String & System

Method Description libcurl Reference
StrCompare(str1, str2, maxLength?) Performs a case-insensitive string comparison. curl_strequal
GetEnv(input) Retrieves a specified system environment variable. curl_getenv

Inspection & Debugging

Method Description libcurl Reference
PrintObj(ObjectMapOrArray, depth := 5, indentLevel := "") Recursively formats AHK data types into a human-readable string. —

Where to Go Next

Clone this wiki locally