luci: go.chromium.org/luci/common/data/jsontime Index | Files

package jsontime

import "go.chromium.org/luci/common/data/jsontime"

Package jsontime implements a JSON-serializable container for a time.Time.

Index

Package Files

jsontime.go

type Time Uses

type Time struct {
    time.Time
}

Time is a wrapper around a time.Time that can be marshalled to/from JSON.

Time will always unmarshal to UTC, regardless of the input Time's Location.

func (Time) MarshalJSON Uses

func (jt Time) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (*Time) UnmarshalJSON Uses

func (jt *Time) UnmarshalJSON(b []byte) error

MarshalJSON implements json.Unmarshaler.

Package jsontime imports 2 packages (graph) and is imported by 4 packages. Updated 2018-12-18. Refresh now. Tools for package owners.