Package org.apache.commons.lang.time
Provides classes and methods to work with dates and durations.
This includes:
DateUtils- a set of static utility methods for working with datesFastDateFormat- a replacement forSimpleDateFormatthat is fast and thread-safeDateFormatUtils- a formatting class for datesStopWatch- a duration timer
- Since:
- 2.0
These classes are immutable (and therefore thread-safe) apart from
StopWatch.
-
Interface Summary Interface Description FastDateFormat.NumberRule Inner class defining a numeric rule.FastDateFormat.Rule Inner class defining a rule. -
Class Summary Class Description DateFormatUtils Date and time formatting utilities and constants.DateUtils A suite of utilities surrounding the use of theCalendarandDateobject.DateUtils.DateIterator Date iterator.DurationFormatUtils Duration formatting utilities and constants.DurationFormatUtils.Token Element that is parsed from the format pattern.FastDateFormat FastDateFormat is a fast and thread-safe version ofSimpleDateFormat.FastDateFormat.CharacterLiteral Inner class to output a constant single character.FastDateFormat.PaddedNumberField Inner class to output a padded number.FastDateFormat.Pair Helper class for creating compound objects.FastDateFormat.StringLiteral Inner class to output a constant string.FastDateFormat.TextField Inner class to output one of a set of values.FastDateFormat.TimeZoneDisplayKey Inner class that acts as a compound key for time zone names.FastDateFormat.TimeZoneNameRule Inner class to output a time zone name.FastDateFormat.TimeZoneNumberRule Inner class to output a time zone as a number+/-HHMMor+/-HH:MM.FastDateFormat.TwelveHourField Inner class to output the twelve hour field.FastDateFormat.TwentyFourHourField Inner class to output the twenty four hour field.FastDateFormat.TwoDigitMonthField Inner class to output a two digit month.FastDateFormat.TwoDigitNumberField Inner class to output a two digit number.FastDateFormat.TwoDigitYearField Inner class to output a two digit year.FastDateFormat.UnpaddedMonthField Inner class to output an unpadded month.FastDateFormat.UnpaddedNumberField Inner class to output an unpadded number.StopWatch StopWatchprovides a convenient API for timings.