Class CalendarDateTime


  • public class CalendarDateTime
    extends CalendarDay
    Author:
    Yohann Chastagnier
    • 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 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 class CalendarDay
        Returns:
        the Date representation of this datetime.