timestamp

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2020 License: AGPL-3.0, Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ANSICwithTZ

type ANSICwithTZ time.Time

Like time.ANSIC but with MST

func (*ANSICwithTZ) MarshalJSON

func (ts *ANSICwithTZ) MarshalJSON() ([]byte, error)

func (*ANSICwithTZ) String

func (ts *ANSICwithTZ) String() string

func (*ANSICwithTZ) UnmarshalJSON

func (ts *ANSICwithTZ) UnmarshalJSON(text []byte) (err error)

type RFC3339

type RFC3339 time.Time

func Parse

func Parse(layout, value string) (RFC3339, error)

use these functions to parse all incoming dates to ensure UTC consistency

func Unix

func Unix(sec int64, nsec int64) RFC3339

func (*RFC3339) MarshalJSON

func (ts *RFC3339) MarshalJSON() ([]byte, error)

func (*RFC3339) String

func (ts *RFC3339) String() string

func (*RFC3339) UnmarshalJSON

func (ts *RFC3339) UnmarshalJSON(jsonBytes []byte) (err error)

Jump to

Keyboard shortcuts

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