-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
java.sql.Time does not provide the date (getDate() is deprecated); thus it does not seem to be possible to get the date from a Time condition:
rcdb/java/src/org/rcdb/model.kt
Line 180 in aaece87
| fun toTime(): java.sql.Time { |
Reproducer in groovy:
import org.rcdb.RCDB
def db = RCDB.createProvider('mysql://rcdb@clasdb-farm.jlab.org/rcdb')
db.connect()
def result = db.getCondition(5052, 'run_start_time')
println "time = ${result.toTime()}"
println "date = ${result.toTime().getDate()}" // failsIs there some other way to get the date with the Java API?
Metadata
Metadata
Assignees
Labels
No labels