For ex., I have the following value:
Time.valueOf("2:00:00")
how should I convert it to Long
? (to be stored in SQLite database as Real
)
java.sql.Time
is used.
Use getTime():
Time t = Time.valueOf("2:00:00");
long l = t.getTime();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With