Method: Google::Type::Date#year

Defined in:
proto_docs/google/type/date.rb

#year::Integer

Returns Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.

Returns:

  • (::Integer)

    Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.



48
49
50
51
# File 'proto_docs/google/type/date.rb', line 48

class Date
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end