org.apache.commons.lang.time

Java Source Code / Java Documentation
1. JDK Core
2. JDK Modules
3. JDK Modules com.sun
4. JDK Modules com.sun.java
5. JDK Modules Platform
6. JDK Modules sun
7. Open Source Build
8. Open Source Graphic Library
9. Open Source IDE Eclipse
10. Open Source J2EE
11. Open Source JDBC Driver
12. Open Source Library
13. Open Source Library Database
14. Open Source Net
15. Open Source Script
16. Science
17. Security
18. Sevlet Container
19. SUN GlassFish
20. Swing Library
21. Web Services apache cxf 2.0.1
22. Web Services AXIS2
23. XML
Microsoft Office Word 2007 Tutorial
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
C# / C Sharp
C# / CSharp Tutorial
ASP.Net
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
PHP
Python
SQL Server / T-SQL
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Java Source Code / Java Documentation » Open Source Library » Apache common lang » org.apache.commons.lang.time 
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 dates
  • FastDateFormat - a replacement for SimpleDateFormat that is fast and thread-safe
  • DateFormatUtils - a formatting class for dates
  • StopWatch - a duration timer
@since 2.0
Java Source File NameTypeComment
DateFormatUtils.javaClass
DateFormatUtilsTest.javaClass TestCase for DateFormatUtils.
DateUtils.javaClass
DateUtilsTest.javaClass Unit tests org.apache.commons.lang.time.DateUtils .
DurationFormatUtils.javaClass

Duration formatting utilities and constants.

DurationFormatUtilsTest.javaClass TestCase for DurationFormatUtils.
FastDateFormat.javaClass

FastDateFormat is a fast and thread-safe version of java.text.SimpleDateFormat .

This class can be used as a direct replacement to SimpleDateFormat in most formatting situations. This class is especially useful in multi-threaded server environments. SimpleDateFormat is not thread-safe in any JDK version, nor will it be as Sun have closed the bug/RFE.

Only formatting is supported, but all patterns are compatible with SimpleDateFormat (except time zones - see below).

Java 1.4 introduced a new pattern letter, 'Z', to represent time zones in RFC822 format (eg.

FastDateFormatTest.javaClass Unit tests org.apache.commons.lang.time.FastDateFormat .
StopWatch.javaClass

StopWatch provides a convenient API for timings.

To start the watch, call StopWatch.start() .

StopWatchTest.javaClass TestCase for StopWatch.
TimeTestSuite.javaClass Test suite for the Time package.
w___ww___.j___a__v___a_2___s___.co__m | Contact Us
Copyright 2003 - 08 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.