datetimepb

package module
v0.0.0-...-eafefdb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_datetime_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Datetime

type Datetime struct {
	Seconds int64 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"`
	Nanos   int32 `protobuf:"varint,2,opt,name=nanos,proto3" json:"nanos,omitempty"`
	Offset  int32 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"`
	// contains filtered or unexported fields
}

func New

func New(t time.Time) *Datetime

func Now

func Now() *Datetime

func (*Datetime) AsTime

func (x *Datetime) AsTime() time.Time

func (*Datetime) Descriptor deprecated

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

Deprecated: Use Datetime.ProtoReflect.Descriptor instead.

func (*Datetime) GetNanos

func (x *Datetime) GetNanos() int32

func (*Datetime) GetOffset

func (x *Datetime) GetOffset() int32

func (*Datetime) GetSeconds

func (x *Datetime) GetSeconds() int64

func (*Datetime) ProtoMessage

func (*Datetime) ProtoMessage()

func (*Datetime) ProtoReflect

func (x *Datetime) ProtoReflect() protoreflect.Message

func (*Datetime) Reset

func (x *Datetime) Reset()

func (*Datetime) String

func (x *Datetime) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL