This function fetches the current server time from the Kraken API in
either UNIX timestamp or RFC 1123 format.
Arguments
- format
A character string specifying the time format to return.
Use "unix" for UNIX timestamp or "rfc" for RFC 1123 format.
The default is "unix".
Value
A POSIXct object if format = "unix"
or
a character string in RFC 1123 format if format = "rfc"
.
Examples
getTime("unix")
#> [1] "2024-11-18 23:24:09 UTC"
getTime("rfc")
#> [1] "Mon, 18 Nov 24 23:24:09 +0000"