Converts a POSIXct object into a UNIX timestamp in the specified unit.
Usage
time_convert_to_kucoin(datetime, unit = c("ms", "ns", "s"))Examples
if (FALSE) { # \dontrun{
dt <- lubridate::as_datetime("2023-10-31 16:00:00", tz = "UTC")
time_convert_to_kucoin(dt, unit = "ms") # 1698777600000
time_convert_to_kucoin(dt, unit = "s") # 1698777600
} # }