jdbcTimeDate {sjdbc}R Documentation

Convert an splusTimeDate::timeDate object to standard JDBC Timestamp string

Description

Converts a timeDate vector to a character vector in the standard format expected by java.sql.Timestamp: yyyy-mm-dd hh:mm:ss.fffffffff (in GMT)

Usage

jdbcTimeDate(data)

Arguments

data

a timeDate vector.

Value

returns a character vector in the specified format.

See Also

exportJDBC

Examples

my.td <- as.POSIXct("2011/1/1")
jdbcTimeDate(my.td)

[Package sjdbc version 1.6.1 Index]