View Source GoogleApi.ContentWarehouse.V1.Model.KnowledgeGraphDateTimeProto (google_api_content_warehouse v0.4.0)

Attributes

  • days (type: integer(), default: nil) - A day of month, 1-31. If present, year and month must be present as well, and must form a valid date.
  • hours (type: integer(), default: nil) - Hour of the day, 0-23
  • microseconds (type: integer(), default: nil) - Microsecond, in the interval [0, 999999]. If present, seconds have to be present as well.
  • minutes (type: integer(), default: nil) - Minute, 0-59. If present, hours have to be present as well.
  • months (type: integer(), default: nil) - A month, 1-12. If present, year must be present as well.
  • seconds (type: integer(), default: nil) - Second, in the interval [0, 60], where 60 is an exceptional value reserved for leap seconds. If present, minutes have to be present as well.
  • tzOffset (type: String.t, default: nil) - Timezone offset in seconds (can be positive/negative). If present, hours have to be present as well If absent, we expect the time above to be in local time (a.k.a. civil time, go/httat#civil_time).
  • years (type: integer(), default: nil) - A year.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.KnowledgeGraphDateTimeProto{
  days: integer() | nil,
  hours: integer() | nil,
  microseconds: integer() | nil,
  minutes: integer() | nil,
  months: integer() | nil,
  seconds: integer() | nil,
  tzOffset: String.t() | nil,
  years: integer() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.