db_timestamp: Determine the type of timestamps the database supports

View source: R/db_timestamp.R

db_timestampR 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)


SCDB documentation built on Oct. 4, 2024, 1:09 a.m.