db_timestamp {SCDB}R Documentation

Determine the type of timestamps the database supports

Description

Determine the type of timestamps the database supports

Usage

db_timestamp(timestamp, conn = NULL)

Arguments

timestamp

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

conn

(DBIConnection(1))
Connection object.

Value

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

Examples


  conn <- get_connection()

  db_timestamp(Sys.time(), conn)

  close_connection(conn)


[Package SCDB version 0.4.0 Index]