Class DefaultTimeKeeper

  • All Implemented Interfaces:
    TimeKeeper

    public class DefaultTimeKeeper
    extends java.lang.Object
    implements TimeKeeper

    DefaultTimeKeeper class.

    • Constructor Detail

      • DefaultTimeKeeper

        public DefaultTimeKeeper()
    • Method Detail

      • getCurrentDate

        public java.util.Date getCurrentDate()

        getCurrentDate

        Specified by:
        getCurrentDate in interface TimeKeeper
        Returns:
        a Date object.
      • getCurrentTime

        public long getCurrentTime()

        getCurrentTime

        Specified by:
        getCurrentTime in interface TimeKeeper
        Returns:
        a long.
      • getTimeZone

        public java.util.TimeZone getTimeZone()
        Specified by:
        getTimeZone in interface TimeKeeper