Enum Class Timestamp.Format

java.lang.Object
java.lang.Enum<Timestamp.Format>
org.scictrl.csshell.Timestamp.Format
All Implemented Interfaces:
Serializable, Comparable<Timestamp.Format>, Constable
Enclosing class:
Timestamp

public static enum Timestamp.Format extends Enum<Timestamp.Format>
Date formatting constants.
  • Enum Constant Details

    • Date

      public static final Timestamp.Format Date
      Format to ISO with "YYYY-MM-DD".
    • DateTime

      public static final Timestamp.Format DateTime
      Format to ISO with "YYYY-MM-DDTHH:MM".
    • DateTimeSeconds

      public static final Timestamp.Format DateTimeSeconds
      Format to ISO with "YYYY-MM-DDTHH:MM:SS".
    • Full

      public static final Timestamp.Format Full
      Format to ISO with full precision "YYYY/MM/DD HH:MM:SS.000000000".
  • Method Details

    • values

      public static Timestamp.Format[] 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 Timestamp.Format 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