powered by
Determine the type of timestamps the database supports
db_timestamp(timestamp, conn = NULL)
The given timestamp converted to a SQL-backend dependent timestamp.
(POSIXct(1) or character(1)) The timestamp to be transformed to the database type.
POSIXct(1)
character(1)
(DBIConnection(1)) Connection object.
DBIConnection(1)
if (FALSE) { # requireNamespace("RSQLite", quietly = TRUE) conn <- get_connection() db_timestamp(Sys.time(), conn) close_connection(conn) }
Run the code above in your browser using DataLab