> Documentation index: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/TimeTrait/llms.txt

    enum Attribute

Automation attributes exposed by `Google.TimeTrait`.
- `


  ### [currentTime](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/TimeTrait/Attribute.md.txt#/s:15GoogleHomeTypes0A0O9TimeTraitV9AttributeO07currentD0yA2GmF)


  ` The current time.

  #### Declaration

  Swift

      case currentTime

- `


  ### [sunriseTime](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/TimeTrait/Attribute.md.txt#/s:15GoogleHomeTypes0A0O9TimeTraitV9AttributeO07sunriseD0yA2GmF)


  ` The time when sunrise occurs.

  #### Declaration

  Swift

      case sunriseTime

- `


  ### [sunsetTime](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/TimeTrait/Attribute.md.txt#/s:15GoogleHomeTypes0A0O9TimeTraitV9AttributeO06sunsetD0yA2GmF)


  ` The time when sunset occurs.

  #### Declaration

  Swift

      case sunsetTime

- `


  ### [dayOfWeek](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/TimeTrait/Attribute.md.txt#/s:15GoogleHomeTypes0A0O9TimeTraitV9AttributeO9dayOfWeekyA2GmF)


  ` The current day of the week.

  #### Declaration

  Swift

      case dayOfWeek

- `


  ### [missingStructureLocation](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/TimeTrait/Attribute.md.txt#/s:15GoogleHomeTypes0A0O9TimeTraitV9AttributeO24missingStructureLocationyA2GmF)


  ` Flag indicating missing structure location.

  #### Declaration

  Swift

      case missingStructureLocation

- `


  ### [currentDate](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/TimeTrait/Attribute.md.txt#/s:15GoogleHomeTypes0A0O9TimeTraitV9AttributeO11currentDateyA2GmF)


  ` The current date.

  #### Declaration

  Swift

      case currentDate

- `


  ### [id](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/TimeTrait/Attribute.md.txt#/s:15GoogleHomeTypes0A0O9TimeTraitV9AttributeO2ids6UInt32Vvp)


  ` The unique field identifier.

  #### Declaration

  Swift

      var id: UInt32 { get }

- `


  ### [type](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/TimeTrait/Attribute.md.txt#/s:15GoogleHomeTypes0A0O9TimeTraitV9AttributeO4type0aB3SDK9FieldTypeOvp)


  ` The automation field type for this attribute.

  #### Declaration

  Swift

      var type: FieldType { get }

- `


  ### [init(rawValue:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/TimeTrait/Attribute.md.txt#/s:15GoogleHomeTypes0A0O9TimeTraitV9AttributeO8rawValueAGSgs6UInt32V_tcfc)


  ` Creates a new instance with the specified raw value.

  If there is no value of the type that corresponds with the specified raw
  value, this initializer returns `nil`. For example:

      enum PaperSize: String {
          case A4, A5, Letter, Legal
      }

      print(PaperSize(rawValue: "Legal"))
      // Prints "Optional(PaperSize.Legal)"

      print(PaperSize(rawValue: "Tabloid"))
      // Prints "nil"

  #### Declaration

  Swift

      init?(rawValue: UInt32)

  #### Parameters

  |---|---|
  | ` rawValue ` | The raw value to use for the new instance. |