org.silverpeas.calendar
Class CalendarDateTime

java.lang.Object
  extended by org.silverpeas.calendar.CalendarDay
      extended by org.silverpeas.calendar.CalendarDateTime

public class CalendarDateTime
extends CalendarDay

User: Yohann Chastagnier Date: 23/04/13


Constructor Summary
protected CalendarDateTime(Date date, String locale)
          Constructs a new CalendarDay instance from the specified date.
 
Method Summary
 Date getDate()
          Gets this date time as a Date instance.
 int getHours()
          Gets the hours of the date time (from 0 to 23).
 int getMilliseconds()
          Gets the milliseconds of the date time (from 0 to 999).
 int getMinutes()
          Gets the minutes of the date time (from 0 to 59).
 int getSeconds()
          Gets the seconds of the date time (from 0 to 59).
 
Methods inherited from class org.silverpeas.calendar.CalendarDay
getDayOfMonth, getMonth, getWeekOfYear, getYear
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalendarDateTime

protected CalendarDateTime(Date date,
                           String locale)
Constructs a new CalendarDay instance from the specified date.

Parameters:
date - the date of the day.
locale - the locale.
Method Detail

getHours

public int getHours()
Gets the hours of the date time (from 0 to 23).

Returns:
the hours of the date time.

getMinutes

public int getMinutes()
Gets the minutes of the date time (from 0 to 59).

Returns:
the minutes of the date time.

getSeconds

public int getSeconds()
Gets the seconds of the date time (from 0 to 59).

Returns:
the seconds of the date time.

getMilliseconds

public int getMilliseconds()
Gets the milliseconds of the date time (from 0 to 999).

Returns:
the milliseconds of the date time.

getDate

public Date getDate()
Gets this date time as a Date instance.

Overrides:
getDate in class CalendarDay
Returns:
the Date representation of this date time.


Copyright © 2016 Silverpeas. All Rights Reserved.