Klasse Dates

java.lang.Object
org.emau.icmvc.ganimed.ttp.cm2.util.Dates

public class Dates extends Object
  • Feldübersicht

    Felder
    Modifizierer und Typ
    Feld
    Beschreibung
    static final ZoneId
     
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
     
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    static LocalDate
    Gibt the specified local date at the start of its day (w.r.t. the system's default zone) zurück.
    static LocalDate
    Gibt the specified date at the start of its day (w.r.t. the system's default zone) zurück.
    static boolean
    Gibt true if the specified local date refers to a day in the future (w.r.t. the system's default zone) or is null (for infinite future) zurück.
    static boolean
    Gibt true if the specified date refers to a day in the future (w.r.t. the system's default zone) or is null (for infinite future) zurück.
    static Date
    toDate(LocalDate localDate)
    Gibt the specified local date as a date (w.r.t. the system's default zone) zurück.
    static LocalDate
    Gibt a local date (w.r.t. the system's default zone) which refers to today zurück.
    static LocalDate
    Gibt the specified date as a local date (w.r.t. the system's default zone) zurück.
    static LocalDate
    Gibt a local date (w.r.t. the system's default zone) which refers to tomorrow zurück.

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Felddetails

    • SYSTEM_ZONE_ID

      public static final ZoneId SYSTEM_ZONE_ID
  • Konstruktordetails

    • Dates

      public Dates()
  • Methodendetails

    • atStartOfDay

      public static LocalDate atStartOfDay(Date date)
      Gibt the specified date at the start of its day (w.r.t. the system's default zone) zurück.
      Parameter:
      date - the instant to shift to the start of its day
      Gibt zurück:
      the specified date at the start of its day (w.r.t. the system's default zone)
    • atStartOfDay

      public static LocalDate atStartOfDay(LocalDate localDate)
      Gibt the specified local date at the start of its day (w.r.t. the system's default zone) zurück.
      Parameter:
      localDate - the local date to shift to the start of its day
      Gibt zurück:
      the specified local date at the start of its day (w.r.t. the system's default zone)
    • today

      public static LocalDate today()
      Gibt a local date (w.r.t. the system's default zone) which refers to today zurück.
      Gibt zurück:
      a local date (w.r.t. the system's default zone) which refers to today
    • tomorrow

      public static LocalDate tomorrow()
      Gibt a local date (w.r.t. the system's default zone) which refers to tomorrow zurück.
      Gibt zurück:
      a local date (w.r.t. the system's default zone) which refers to tomorrow
    • toDate

      public static Date toDate(LocalDate localDate)
      Gibt the specified local date as a date (w.r.t. the system's default zone) zurück.
      Parameter:
      localDate - the local date to convert
      Gibt zurück:
      the specified local date as a date (w.r.t. the system's default zone)
    • toLocalDate

      public static LocalDate toLocalDate(Date date)
      Gibt the specified date as a local date (w.r.t. the system's default zone) zurück.
      Parameter:
      date - the date to convert
      Gibt zurück:
      the specified date as a local date (w.r.t. the system's default zone)
    • isFutureDay

      public static boolean isFutureDay(Date date)
      Gibt true if the specified date refers to a day in the future (w.r.t. the system's default zone) or is null (for infinite future) zurück.
      Parameter:
      date - the date to check
      Gibt zurück:
      true if the specified date refers to a day in the future (w.r.t. the system's default zone) or is null (for infinite future)
    • isFutureDay

      public static boolean isFutureDay(LocalDate localDate)
      Gibt true if the specified local date refers to a day in the future (w.r.t. the system's default zone) or is null (for infinite future) zurück.
      Parameter:
      localDate - the local date to check
      Gibt zurück:
      true if the specified local date refers to a day in the future (w.r.t. the system's default zone) or is null (for infinite future)