Documentation
¶
Index ¶
- Variables
- type Time
- func (x *Time) AsTime() time.Time
- func (*Time) Descriptor() ([]byte, []int)deprecated
- func (x *Time) GetNanos() int32
- func (x *Time) GetSeconds() int64
- func (x *Time) MarshalBinary() ([]byte, error)
- func (x *Time) MarshalJSON() ([]byte, error)
- func (x *Time) MarshalText() ([]byte, error)
- func (x *Time) Parse(layout, value string) error
- func (*Time) ProtoMessage()
- func (x *Time) ProtoReflect() protoreflect.Message
- func (x *Time) Reset()
- func (x *Time) Scan(src any) error
- func (x *Time) Set(t time.Time) *Time
- func (x *Time) String() string
- func (x *Time) UnmarshalBinary(b []byte) error
- func (x *Time) UnmarshalJSON(b []byte) error
- func (x *Time) UnmarshalText(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var File_time_v1_time_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Time ¶
type Time struct {
// Represents seconds of UTC time since Unix epoch
// 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
// 9999-12-31T23:59:59Z inclusive.
Seconds int64 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"`
// Non-negative fractions of a second at nanosecond resolution. Negative
// second values with fractions must still have non-negative nanos values
// that count forward in time. Must be from 0 to 999,999,999
// inclusive.
Nanos int32 `protobuf:"varint,2,opt,name=nanos,proto3" json:"nanos,omitempty"`
// contains filtered or unexported fields
}
Time
func (*Time) Descriptor
deprecated
func (*Time) GetSeconds ¶
func (*Time) MarshalBinary ¶
func (*Time) MarshalJSON ¶
func (*Time) MarshalText ¶
func (*Time) ProtoMessage ¶
func (*Time) ProtoMessage()
func (*Time) ProtoReflect ¶
func (x *Time) ProtoReflect() protoreflect.Message
func (*Time) UnmarshalBinary ¶
func (*Time) UnmarshalJSON ¶
func (*Time) UnmarshalText ¶
Click to show internal directories.
Click to hide internal directories.