哪个Java数据类型对应postgresql“没有区域的时间”(Which Java data type corresponds to postgresql “time without zone”)
我认为这是java.sql.Time但不推荐使用此类中的几个方法。 它只有一个接收长数据类型参数的构造函数,就像这样。
Time(long time)我从用户那里得到一个格式如下的字符串: hh:mm
关于如何实现这一目标的任何建议?
谢谢。
I thought it was java.sql.Time but several methods within this class are deprecated. It has only one constructor that receives a long data type argument, just like this.
Time(long time)I get from the user a string with the following format: hh:mm
Any advices on how I can achieve this?
Thanks.
最满意答案
看一下
java.time.LocalTime在Java8添加
Have a look at
java.time.LocalTimeadded in Java8
更多推荐
发布评论