R/jdbcTimeDate.R

"jdbcTimeDate" <- 
function(data) {
	# converts a vector of dates data into JDBC standard Timestamp format
	# yyyy-mm-dd hh:mm:ss.fffffffff    (in GMT)
	format <- "%Y-%m-%d %H:%M:%OS3"
	#data@time.zone <- "GMT"
	as.character(data, format=format)
}

Try the sjdbc package in your browser

Any scripts or data that you put into this service are public.

sjdbc documentation built on May 1, 2021, 1:08 a.m.