TimeDateContainer

struct TimeDateContainer

This struct will contain all the info we need to display our time and date.

  • This is the time, as a locale-adjusted string. It will always use a colon separator between hours and seconds.

    Declaration

    Swift

    var time: String
  • If the time is ante meridian, then this will contain the locale-adjusted “AM” or “PM”.

    Declaration

    Swift

    var amPm: String
  • This will contain the date, as abbreviated weekday abbreviated month name, day of the month, year.

    Declaration

    Swift

    var date: String