Convert timestamps to milliseconds
Details
This helper standardizes timestamps for APIs that expect epoch milliseconds. Dates are interpreted in the supplied timezone.
Examples
bunddev_timestamp_to_ms(as.POSIXct("2024-01-01 00:00:00", tz = "Europe/Berlin"))
#> [1] 1.704064e+12