The java.util.Calendar class is used to represent the date and time.
Tutorial Details:
The java.util.Calendar class is used to represent the date and time. The year, month, day, hour, minute, second, and milliseconds can all be set or obtained from a Calendar object. The default Calendar object has the current time in it. There are also methods for making data calculations.
Other related classes: Date, and DateFormat, ...
To get the current time
The default Calendar constructor produces an object whose fields are set to the current time for the default timezone and locale.
Rate Tutorial: http://www.roseindia.net/java/java-tips/other/10time/30calendar.shtml
Read
Tutorial at: Click here to view the tutorial
Rate Tutorial: java.util.Calendar
View Tutorial: java.util.Calendar
Related
Tutorials:
|