Package org.silverpeas.core.web.calendar
Class CalendarDateTime
- java.lang.Object
-
- org.silverpeas.core.web.calendar.CalendarDay
-
- org.silverpeas.core.web.calendar.CalendarDateTime
-
public class CalendarDateTime extends CalendarDay
- Author:
- Yohann Chastagnier
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CalendarDateTime(Date date, String locale)
Constructs a new CalendarDay instance from the specified date.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Date
getDate()
Gets this datetime as a Date instance.int
getHours()
Gets the hours of the datetime (from 0 to 23).int
getMilliseconds()
Gets the milliseconds of the datetime (from 0 to 999).int
getMinutes()
Gets the minutes of the datetime (from 0 to 59).int
getSeconds()
Gets the seconds of the datetime (from 0 to 59).-
Methods inherited from class org.silverpeas.core.web.calendar.CalendarDay
getDayOfMonth, getMonth, getWeekOfYear, getYear
-
-
-
-
Method Detail
-
getHours
public int getHours()
Gets the hours of the datetime (from 0 to 23).- Returns:
- the hours of the datetime.
-
getMinutes
public int getMinutes()
Gets the minutes of the datetime (from 0 to 59).- Returns:
- the minutes of the datetime.
-
getSeconds
public int getSeconds()
Gets the seconds of the datetime (from 0 to 59).- Returns:
- the seconds of the datetime.
-
getMilliseconds
public int getMilliseconds()
Gets the milliseconds of the datetime (from 0 to 999).- Returns:
- the milliseconds of the datetime.
-
getDate
public Date getDate()
Gets this datetime as a Date instance.- Overrides:
getDate
in classCalendarDay
- Returns:
- the Date representation of this datetime.
-
-