Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/date/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 要导入的包使用SystemFactory和Joda Time_Java_Date_Jodatime - Fatal编程技术网

Java 要导入的包使用SystemFactory和Joda Time

Java 要导入的包使用SystemFactory和Joda Time,java,date,jodatime,Java,Date,Jodatime,我在Java中使用Joda time。我需要导入什么包才能使用以下语句 DateTime now = SystemFactory.getClock().getDateTime(); 我收到错误“SystemFactory无法解决” 那是乔达图书馆的一部分吗 org.phpfirefly.test.joda.factory.SystemFactory 它不是Joda图书馆的一部分。 请改为使用以下行: private static final DateTime theDateTime = ne

我在Java中使用Joda time。我需要导入什么包才能使用以下语句

DateTime now = SystemFactory.getClock().getDateTime();
我收到错误“SystemFactory无法解决”

那是乔达图书馆的一部分吗

org.phpfirefly.test.joda.factory.SystemFactory
它不是Joda图书馆的一部分。 请改为使用以下行:

private static final DateTime theDateTime = new DateTime(2009, 9, 6, 14, 30, 0, 0);
注: 如果您使用的是IDE,那么它将帮助您导入适当的包