Class Time


  • public final class Time
    extends Object
    Represents time.
    • Constructor Detail

      • Time

        protected Time()
        Initializes a new instance of Time.
      • Time

        protected Time​(int minutes)
                throws ArgumentException
        Initializes a new instance of Time.
        Parameters:
        minutes - The number of minutes since 12:00AM.
        Throws:
        ArgumentException - the argument exception
      • Time

        protected Time​(int hours,
                       int minutes,
                       int seconds)
        Initializes a new instance of Time.
        Parameters:
        hours - the hours
        minutes - the minutes
        seconds - the seconds
    • Method Detail

      • toXSTime

        public String toXSTime()
        Convert Time to XML Schema time.
        Returns:
        String in XML Schema time format
      • convertToMinutes

        protected int convertToMinutes()
        Converts the time into a number of minutes since 12:00AM.
        Returns:
        The number of minutes since 12:00AM the time represents.
      • getHours

        protected int getHours()
        Gets the hours.
        Returns:
        the hours
      • getMinutes

        protected int getMinutes()
        Gets the minutes.
        Returns:
        the minutes
      • getSeconds

        protected int getSeconds()
        Gets the seconds.
        Returns:
        the seconds