date - ActiveState ActiveGo 1.8
...

Package date

import "google.golang.org/genproto/googleapis/type/date"
Overview
Index

Overview ▾

Package date is a generated protocol buffer package.

It is generated from these files:

google/type/date.proto

It has these top-level messages:

Date

type Date

Represents a whole calendar date, e.g. date of birth. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the Proleptic Gregorian Calendar. The day may be 0 to represent a year and month where the day is not significant, e.g. credit card expiration date. The year may be 0 to represent a month and day independent of year, e.g. anniversary date. Related types are [google.type.TimeOfDay][google.type.TimeOfDay] and `google.protobuf.Timestamp`.

type Date struct {
    // Year of date. Must be from 1 to 9999, or 0 if specifying a date without
    // a year.
    Year int32 `protobuf:"varint,1,opt,name=year" json:"year,omitempty"`
    // Month of year. Must be from 1 to 12.
    Month int32 `protobuf:"varint,2,opt,name=month" json:"month,omitempty"`
    // Day of month. Must be from 1 to 31 and valid for the year and month, or 0
    // if specifying a year/month where the day is not significant.
    Day int32 `protobuf:"varint,3,opt,name=day" json:"day,omitempty"`
}

func (*Date) Descriptor

func (*Date) Descriptor() ([]byte, []int)

func (*Date) GetDay

func (m *Date) GetDay() int32

func (*Date) GetMonth

func (m *Date) GetMonth() int32

func (*Date) GetYear

func (m *Date) GetYear() int32

func (*Date) ProtoMessage

func (*Date) ProtoMessage()

func (*Date) Reset

func (m *Date) Reset()

func (*Date) String

func (m *Date) String() string