offsetdatetime

package
v1.0.19 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 3 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OffsetDateTime

type OffsetDateTime time.Time

func New

func New(year int, month time.Month, day int, hour int, minute int, second int, nanosecond int, location *time.Location) OffsetDateTime

func Now

func Now() OffsetDateTime

func Parse

func Parse(s string) (OffsetDateTime, error)

func (OffsetDateTime) IsAfter added in v1.0.19

func (t OffsetDateTime) IsAfter(other OffsetDateTime) bool

func (OffsetDateTime) IsBefore added in v1.0.19

func (t OffsetDateTime) IsBefore(other OffsetDateTime) bool

func (OffsetDateTime) MarshalJSON added in v1.0.12

func (d OffsetDateTime) MarshalJSON() ([]byte, error)

func (OffsetDateTime) String

func (t OffsetDateTime) String() string

func (OffsetDateTime) ToString added in v1.0.12

func (t OffsetDateTime) ToString() gocommon.String

func (*OffsetDateTime) UnmarshalJSON added in v1.0.12

func (d *OffsetDateTime) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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