Reference documentation and code samples for the Cloud Data Loss Prevention (DLP) V2 API class Google::Cloud::Dlp::V2::DateTime.
Message for a date time object. e.g. 2018-01-01, 5th August.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#date
def date() -> ::Google::Type::Date
Returns
- (::Google::Type::Date) — One or more of the following must be set. Must be a valid date or time value.
#date=
def date=(value) -> ::Google::Type::Date
Parameter
- value (::Google::Type::Date) — One or more of the following must be set. Must be a valid date or time value.
Returns
- (::Google::Type::Date) — One or more of the following must be set. Must be a valid date or time value.
#day_of_week
def day_of_week() -> ::Google::Type::DayOfWeek
Returns
- (::Google::Type::DayOfWeek) — Day of week
#day_of_week=
def day_of_week=(value) -> ::Google::Type::DayOfWeek
Parameter
- value (::Google::Type::DayOfWeek) — Day of week
Returns
- (::Google::Type::DayOfWeek) — Day of week
#time
def time() -> ::Google::Type::TimeOfDay
Returns
- (::Google::Type::TimeOfDay) — Time of day
#time=
def time=(value) -> ::Google::Type::TimeOfDay
Parameter
- value (::Google::Type::TimeOfDay) — Time of day
Returns
- (::Google::Type::TimeOfDay) — Time of day
#time_zone
def time_zone() -> ::Google::Cloud::Dlp::V2::DateTime::TimeZone
Returns
- (::Google::Cloud::Dlp::V2::DateTime::TimeZone) — Time zone
#time_zone=
def time_zone=(value) -> ::Google::Cloud::Dlp::V2::DateTime::TimeZone
Parameter
- value (::Google::Cloud::Dlp::V2::DateTime::TimeZone) — Time zone
Returns
- (::Google::Cloud::Dlp::V2::DateTime::TimeZone) — Time zone