Produces a unix timestamp.
Arguments:
- None (Any arguments passed will be ignored)
Return Value: The current unix timestamp (seconds since the Epoch), with microsecond precision (up to 6 decimal places), as a numeric, decimal value.
Returns a date/time string formatted according to the specified format string.
Arguments:
- The format string - see https://docs.python.org/2/library/datetime.html#strftime-strptime-behavior for information on how to construct format strings - Kragle uses the 1999 C standard date/time format codes.
- (Optional) The timestamp to format. If omitted, the current timestamp will be used.
URL encodes a string so that special characters are replaced with %xx hex codes. Letters, digits, dashes, underscores, periods, and slashes (/) are not quoted.
Arguments:
- The string to be URL-encoded.
Return Value: The url-encoded string.
Similar to URLENCODE , with two differences:
- Spaces are not encoded as
%20but by+instead (+'s in the string are encoded as %2B). - Slashes are encoded (as
%2F).
Arguments:
- The string to be URL-encoded.
Return Value: The url-encoded string.
Split a string on a given character, returning an array of strings.
Arguments:
- The string to split.
- The character on which to split. If omitted, an array with a single element (the original string) will be returned.
Return Value: The array of strings derived from splitting the original string.
Add two (or more) numbers.
Arguments:
- The first number.
- The second number.
- (more numbers)
Return Value: The sum of all arguments.
Subtract two (or more) numbers, in order.
Arguments:
- The first number.
- The number to subtract from the first.
- (more numbers to subtract sequentially)
Return Value: The difference of all arguments, ie: arg1 - arg2 - ... - argn.
Calculate a hash for an input string.
Arguments:
- The string to hash. If no string is provided, the empty string is used.
Return Value: The hash (either md5, sha256 or sha512 depending on which function is used) of the string, output as a hex digest string.