Compare Java. Net in Java sql. The right way to time
•
Java
Which method can compare time in Java?
I mean Java sql. Time.
Or is there a better way to compare joda time?
Solution
If you can use joda time to do this In the persistence layer, all SQL types are converted to joda equivalents, and then joda objects are used in business logic Trust me, you won't regret it
Localtime may be the object you want to use, and then you can use compareto(), isafter(), isbefore() It's also easy to merge them into a full datetime if needed
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码