ISO8601Format

public enum ISO8601Format: String

Helper enum for ISO8601 Formatted datestrings

  • Year: Year
  • YearMonth: Year and month
  • Date

    Year, month and day

  • DateTime: same as Date including hours and minutes
  • DateTimeSec: same as DateTime including seconds
  • DateTimeMilliSec: same as DateTimeSec including milliseconds
    • Year (1997)

      Declaration

      Swift

      case Year = "yyyy"
    • Year and month (1997-07)

      Declaration

      Swift

      case YearMonth = "yyyy-MM"
    • Year, month and day (1997-07-16)

      Declaration

      Swift

      case Date = "yyyy-MM-dd"
    • same as Date including hours and minutes (1997-07-16T19:20+01:00)

      Declaration

      Swift

      case DateTime = "yyyy-MM-dd'T'HH:mmZ"
    • same as DateTime including seconds (1997-07-16T19:20:30+01:00)

      Declaration

      Swift

      case DateTimeSec = "yyyy-MM-dd'T'HH:mm:ssZ"
    • same as DateTimeSec including milliseconds (1997-07-16T19:20:30.45+01:00)

      Declaration

      Swift

      case DateTimeMilliSec = "yyyy-MM-dd'T'HH:mm:ss.SSSZ"