class Google::Apis::CalendarV3::EventDateTime

Attributes

date[RW]

The date, in the format “yyyy-mm-dd”, if this is an all-day event. Corresponds to the JSON property `date` @return [Date]

date_time[RW]

The time, as a combined date-time value (formatted according to RFC3339). A time zone offset is required unless a time zone is explicitly specified in timeZone. Corresponds to the JSON property `dateTime` @return [DateTime]

time_zone[RW]

The time zone in which the time is specified. (Formatted as an IANA Time Zone Database name, e.g. “Europe/Zurich”.) For recurring events this field is required and specifies the time zone in which the recurrence is expanded. For single events this field is optional and indicates a custom time zone for the event start/end. Corresponds to the JSON property `timeZone` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/calendar_v3/classes.rb, line 1331
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/calendar_v3/classes.rb, line 1336
def update!(**args)
  @date = args[:date] if args.key?(:date)
  @date_time = args[:date_time] if args.key?(:date_time)
  @time_zone = args[:time_zone] if args.key?(:time_zone)
end