unixtime

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 28, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NonZeroNanoseconds = errors.New("time has nonzero nanoseconds")

Functions

This section is empty.

Types

type Seconds

type Seconds int64

func Now

func Now() Seconds

func (Seconds) Decimal

func (t Seconds) Decimal() string

func (Seconds) MarshalBinary

func (t Seconds) MarshalBinary() ([]byte, error)

func (Seconds) MarshalEasyJSON

func (t Seconds) MarshalEasyJSON(w *jwriter.Writer)

func (*Seconds) ParseDecimal

func (t *Seconds) ParseDecimal(value string) error

func (*Seconds) ParseString

func (t *Seconds) ParseString(value string) error

func (*Seconds) ParseStringIgnoreNanoseconds

func (t *Seconds) ParseStringIgnoreNanoseconds(value string) error

func (Seconds) String

func (t Seconds) String() string

func (*Seconds) UnmarshalBinary

func (t *Seconds) UnmarshalBinary(data []byte) error

func (*Seconds) UnmarshalEasyJSON

func (t *Seconds) UnmarshalEasyJSON(l *jlexer.Lexer)

Jump to

Keyboard shortcuts

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