Class AbstractDateTemporal<T extends Temporal<? super T>>

    • Constructor Detail

      • AbstractDateTemporal

        public AbstractDateTemporal​(long date)
        Deprecated.
    • Method Detail

      • clone

        public abstract T clone()
        Deprecated.
        Description copied from interface: Temporal
        Clones itself.
        Specified by:
        clone in interface Temporal<T extends Temporal<? super T>>
        Overrides:
        clone in class Date
        Returns:
        a clone to this temporal.
      • getTimeDataTo

        public Duration getTimeDataTo​(T anotherDatable)
        Deprecated.
        Description copied from interface: Temporal
        Compute the time between the temporal instance and another one.
        Specified by:
        getTimeDataTo in interface Temporal<T extends Temporal<? super T>>
        Parameters:
        anotherDatable - another date
        Returns:
        the time between the temporal instance and another one represented by Duration.
      • newInstanceFrom

        protected abstract T newInstanceFrom​(Date aDate)
        Deprecated.
        Create a new instance from a given datetime in milliseconds.
        Parameters:
        aDate - the datetime in milliseconds.
        Returns:
        the new temporal instance corresponding to the given time in milliseconds.
      • getBeginOfDay

        public T getBeginOfDay()
        Deprecated.
        Description copied from interface: Temporal
        Computes first hour, minute, second, millisecond from the temporal instance.
        Specified by:
        getBeginOfDay in interface Temporal<T extends Temporal<? super T>>
        Returns:
        a date at last hour, minute, second and millisecond of the temporal instance.
      • getEndOfDay

        public T getEndOfDay()
        Deprecated.
        Description copied from interface: Temporal
        Computes first hour, minute, second, millisecond from the temporal instance.
        Specified by:
        getEndOfDay in interface Temporal<T extends Temporal<? super T>>
        Returns:
        a date at last hour, minute, second and millisecond of the temporal instance.
      • getBeginOfWeek

        public T getBeginOfWeek()
        Deprecated.
        Description copied from interface: Temporal
        Compute the first hour, minute, second, millisecond from the temporal instance.
        Specified by:
        getBeginOfWeek in interface Temporal<T extends Temporal<? super T>>
        Returns:
        a date at last hour, minute, second and millisecond of the temporal instance.
      • getEndOfWeek

        public T getEndOfWeek()
        Deprecated.
        Description copied from interface: Temporal
        Compute the date of the first day in the week from the temporal instance.
        Specified by:
        getEndOfWeek in interface Temporal<T extends Temporal<? super T>>
        Returns:
        a date for the first day of the week of the temporal instance.
      • getBeginOfWeek

        public T getBeginOfWeek​(String locale)
        Deprecated.
        Description copied from interface: Temporal
        Compute the first hour, minute, second, millisecond from the temporal instance and a given locale.
        Specified by:
        getBeginOfWeek in interface Temporal<T extends Temporal<? super T>>
        Parameters:
        locale - the locale
        Returns:
        a date at last hour, minute, second and millisecond of the temporal instance.
      • getEndOfWeek

        public T getEndOfWeek​(String locale)
        Deprecated.
        Description copied from interface: Temporal
        Compute the date of the first day in the week from the temporal instance and a given locale.
        Specified by:
        getEndOfWeek in interface Temporal<T extends Temporal<? super T>>
        Parameters:
        locale - the locale
        Returns:
        a date for the first day of the week of the temporal instance.
      • getBeginOfMonth

        public T getBeginOfMonth()
        Deprecated.
        Description copied from interface: Temporal
        Compute the first hour, minute, second, millisecond from the temporal instance.
        Specified by:
        getBeginOfMonth in interface Temporal<T extends Temporal<? super T>>
        Returns:
        a date at last hour, minute, second and millisecond of the temporal instance.
      • getEndOfMonth

        public T getEndOfMonth()
        Deprecated.
        Description copied from interface: Temporal
        Compute the date of the first day in the month from the temporal instance.
        Specified by:
        getEndOfMonth in interface Temporal<T extends Temporal<? super T>>
        Returns:
        a date for the first day of the month of the temporal instance.
      • getBeginOfYear

        public T getBeginOfYear()
        Deprecated.
        Description copied from interface: Temporal
        Compute the first hour, minute, second, millisecond from the temporal instance.
        Specified by:
        getBeginOfYear in interface Temporal<T extends Temporal<? super T>>
        Returns:
        a date at last hour, minute, second and millisecond of the temporal instance.
      • getEndOfYear

        public T getEndOfYear()
        Deprecated.
        Description copied from interface: Temporal
        Compute the date of the first day in the year from the temporal instance.
        Specified by:
        getEndOfYear in interface Temporal<T extends Temporal<? super T>>
        Returns:
        a date for the first day of the year of the temporal instance.
      • addYears

        public T addYears​(int amount)
        Deprecated.
        Description copied from interface: Temporal
        Adds a number of years to the temporal instance returning a new one. The original Temporal is unchanged.
        Specified by:
        addYears in interface Temporal<T extends Temporal<? super T>>
        Parameters:
        amount - the amount to add, may be negative
        Returns:
        the new Temporal with the amount added
      • addMonths

        public T addMonths​(int amount)
        Deprecated.
        Description copied from interface: Temporal
        Adds a number of months to the temporal instance returning a new one. The original Temporal is unchanged.
        Specified by:
        addMonths in interface Temporal<T extends Temporal<? super T>>
        Parameters:
        amount - the amount to add, may be negative
        Returns:
        the new Temporal with the amount added
      • addWeeks

        public T addWeeks​(int amount)
        Deprecated.
        Description copied from interface: Temporal
        Adds a number of weeks to the temporal instance returning a new one. The original Temporal is unchanged.
        Specified by:
        addWeeks in interface Temporal<T extends Temporal<? super T>>
        Parameters:
        amount - the amount to add, may be negative
        Returns:
        the new Temporal with the amount added
      • addDays

        public T addDays​(int amount)
        Deprecated.
        Description copied from interface: Temporal
        Adds a number of days to the temporal instance returning a new one. The original Temporal is unchanged.
        Specified by:
        addDays in interface Temporal<T extends Temporal<? super T>>
        Parameters:
        amount - the amount to add, may be negative
        Returns:
        the new Temporal with the amount added
      • addHours

        public T addHours​(int amount)
        Deprecated.
        Description copied from interface: Temporal
        Adds a number of hours to the temporal instance returning a new one. The original Temporal is unchanged.
        Specified by:
        addHours in interface Temporal<T extends Temporal<? super T>>
        Parameters:
        amount - the amount to add, may be negative
        Returns:
        the new Temporal with the amount added
      • addMinutes

        public T addMinutes​(int amount)
        Deprecated.
        Description copied from interface: Temporal
        Adds a number of minutes to the temporal instance returning a new one. The original Temporal is unchanged.
        Specified by:
        addMinutes in interface Temporal<T extends Temporal<? super T>>
        Parameters:
        amount - the amount to add, may be negative
        Returns:
        the new Temporal with the amount added
      • addSeconds

        public T addSeconds​(int amount)
        Deprecated.
        Description copied from interface: Temporal
        Adds a number of seconds to the temporal instance returning a new one. The original Temporal is unchanged.
        Specified by:
        addSeconds in interface Temporal<T extends Temporal<? super T>>
        Parameters:
        amount - the amount to add, may be negative
        Returns:
        the new Temporal with the amount added
      • addMilliseconds

        public T addMilliseconds​(int amount)
        Deprecated.
        Description copied from interface: Temporal
        Adds a number of milliseconds to the temporal instance returning a new one. The original Temporal is unchanged.
        Specified by:
        addMilliseconds in interface Temporal<T extends Temporal<? super T>>
        Parameters:
        amount - the amount to add, may be negative
        Returns:
        the new Temporal with the amount added