Enum Class Times

java.lang.Object
java.lang.Enum<Times>
eu.hansolo.toolbox.time.Times
All Implemented Interfaces:
Serializable, Comparable<Times>, Constable

public enum Times extends Enum<Times>
  • Enum Constant Details

    • HH_mm_ss_SSSS

      public static final Times HH_mm_ss_SSSS

      Format : HH:mm:ss.SSSS

      Example: 23:59:59.9999

    • HH_mm_ss

      public static final Times HH_mm_ss

      Format : HH:mm:ss

      Example: 23:59:59

    • HH_mm

      public static final Times HH_mm

      Format : HH:mm

      Example: 23:59

    • HHmmss_SSSS

      public static final Times HHmmss_SSSS

      Format : HHmmss.SSSS

      Example: 235959.9999

    • HHmmss

      public static final Times HHmmss

      Format : HHmmss

      Example: 235959

    • HHmm

      public static final Times HHmm

      Format : HHmm

      Example: 2359

    • HH

      public static final Times HH

      Format : HH

      Example: 23

  • Method Details

    • values

      public static Times[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Times valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • parse

      public LocalTime parse(String text)
    • parseTime

      public Instant parseTime(String text)
    • parseTime

      public Instant parseTime(String text, ZoneId zoneId)
    • format

      public String format(LocalTime time)
    • format

      public String format(Instant time)
    • format

      public String format(Instant time, ZoneId zoneId)