Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to import FromString for joda-time?

I try to use joda-time library for easier measuring the execution time of my program (not for profiling, just for the user).

But when I compile my project I get error about missing dependency -- the "FromString" class is missing. I tried to explicitly import it, but while typing intellisense (IntelliJ) does not even detect it, on the other hand there is only one jar for download from joda-time site.

How do I resolve this dependency?

I am aware of wrapper for JT but for now I would like to use it directly.

like image 946
greenoldman Avatar asked Dec 03 '11 15:12

greenoldman


People also ask

What is Joda-Time format?

Joda-Time provides a comprehensive formatting system. There are two layers: High level - pre-packaged constant formatters. Mid level - pattern-based, like SimpleDateFormat. Low level - builder.

What is JodaTime in Java?

Joda-Time provides a quality replacement for the Java date and time classes. Joda-Time is the de facto standard date and time library for Java prior to Java SE 8. Users are now asked to migrate to java. time (JSR-310). Joda-Time is licensed under the business-friendly Apache 2.0 licence.

What is the use of Joda-Time?

Joda-Time provides support for multiple calendar systems and the full range of time-zones. The Chronology and DateTimeZone classes provide this support. Joda-Time defaults to using the ISO calendar system, which is the de facto civil calendar used by the world.


1 Answers

If the problem is with FromString, then the missing dependency is Joda Convert. Add the relevant jars.

like image 192
Suminda Sirinath S. Dharmasena Avatar answered Sep 21 '22 18:09

Suminda Sirinath S. Dharmasena