Learn R Programming

SCDB (version 0.5.1)

db_timestamp: Determine the type of timestamps the database supports

Description

Determine the type of timestamps the database supports

Usage

db_timestamp(timestamp, conn = NULL)

Value

The given timestamp converted to a SQL-backend dependent timestamp.

Arguments

timestamp

(POSIXct(1) or character(1))
The timestamp to be transformed to the database type.

conn

(DBIConnection(1))
Connection object.

Examples

Run this code
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