Format

public enum Format : String

The available formats for reading and storing date components.

  • YMD

    The format yyyy-MM-dd.

    Declaration

    Swift

    case YMD = "yyyy-MM-dd"
  • The format yyyy-MM-dd HH:mm.

    This format is lexically comparable with SQLite’s CURRENT_TIMESTAMP.

    Declaration

    Swift

    case YMD_HM = "yyyy-MM-dd HH:mm"
  • The format yyyy-MM-dd HH:mm:ss.

    This format is lexically comparable with SQLite’s CURRENT_TIMESTAMP.

    Declaration

    Swift

    case YMD_HMS = "yyyy-MM-dd HH:mm:ss"
  • The format yyyy-MM-dd HH:mm:ss.SSS.

    This format is lexically comparable with SQLite’s CURRENT_TIMESTAMP.

    Declaration

    Swift

    case YMD_HMSS = "yyyy-MM-dd HH:mm:ss.SSS"
  • HM

    The format HH:mm.

    Declaration

    Swift

    case HM = "HH:mm"
  • HMS

    The format HH:mm:ss.

    Declaration

    Swift

    case HMS = "HH:mm:ss"
  • The format HH:mm:ss.SSS.

    Declaration

    Swift

    case HMSS = "HH:mm:ss.SSS"