deis: github.com/deis/deis/pkg/time Index | Files

package time

import "github.com/deis/deis/pkg/time"

Index

Package Files

time.go

Constants

const DeisDatetimeFormat string = "2006-01-02T15:04:05MST"

DeisDatetimeFormat is the standard date/time representation used in Deis.

type Time Uses

type Time struct {
    time.Time
}

Time represents the standard datetime format used across the Deis Platform.

func (*Time) MarshalJSON Uses

func (t *Time) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface. The time is a quoted string in Deis' datetime format.

func (*Time) UnmarshalJSON Uses

func (t *Time) UnmarshalJSON(data []byte) (err error)

UnmarshalJSON implements the json.Unmarshaler interface. The time is expected to be a quoted string in Deis' datetime format.

func (*Time) UnmarshalText Uses

func (t *Time) UnmarshalText(data []byte) (err error)

UnmarshalText implements the encoding.TextUnmarshaler interface. The time is expected to be in Deis' datetime format.

Package time imports 1 packages (graph) and is imported by 83 packages. Updated 2016-07-18. Refresh now. Tools for package owners.