powered by
Convert date or datetime value to timestamp number
date_to_timestamp(date, tzone = "Europe/Paris", milliseconds = TRUE)
numeric
date or datetime value
character, time-zone of the current time
logical, whether the timestamp is in milliseconds or seconds
date_to_timestamp(as.Date("2024-01-01")) date_to_timestamp(as.POSIXct("2024-01-01 08:00:00", tz = "UTC"), milliseconds = FALSE)
Run the code above in your browser using DataLab