Suppose time is given in HH:MM:SS format.how can we convert this time to second in jooq.
example- Input Time - 2:10:30 outlet- 2*60*60 + 10*60 + 30 =7830 secs
Suppose time is given in HH:MM:SS format.how can we convert this time to second in jooq.
example- Input Time - 2:10:30 outlet- 2*60*60 + 10*60 + 30 =7830 secs
Copyright © 2021 Jogjafile Inc.
This works in both MySQL and PostgreSQL, assuming you're using the
TIME
data type (otherwise, useDSL.time()
to convert your data to SQLTIME
):jOOQ version:
The following import is implied, as always: