Package org.apache.commons.lang3.time
Provides classes and methods to work with dates and durations.
These classes are immutable (and therefore thread-safe) apart from StopWatch.
The time package contains some basic utilities for manipulating time (a delorean, police box and grandfather clock?).
These include a StopWatch for simple performance measurements and an optimised FastDateFormat class.
New in Lang 2.1 is the DurationFormatUtils class, which provides various methods for formatting durations.
- Since:
- 2.0
-
Interface Summary Interface Description DateParser DateParser is the "missing" interface for the parsing methods ofDateFormat.DatePrinter DatePrinter is the "missing" interface for the format methods ofDateFormat. -
Class Summary Class Description CalendarUtils Helps useCalendars.DateFormatUtils Date and time formatting utilities and constants.DateUtils DateUtils.DateIterator Date iterator.DurationFormatUtils Duration formatting utilities and constants.DurationFormatUtils.Token Element that is parsed from the format pattern.DurationUtils Utilities forDuration.FastDateFormat FastDateFormat is a fast and thread-safe version ofSimpleDateFormat.FastDateParser FastDateParser is a fast and thread-safe version ofSimpleDateFormat.FastDateParser.TimeZoneStrategy A strategy that handles a time zone field in the parsing patternFastDatePrinter FastDatePrinter is a fast and thread-safe version ofSimpleDateFormat.FastTimeZone Faster methods to produce custom time zones.FormatCache<F extends Format> FormatCache is a cache and factory forFormats.GmtTimeZone Custom time zone that contains offset from GMT.StopWatch StopWatchprovides a convenient API for timings.TimeZones Helps to deal withTimeZones.