Back to godoc.org

Package time

v0.0.0-...-c9ffa05
Latest Go to latest

The highest tagged major version is .

Published: Feb 28, 2018 | License: MIT | Module: github.com/deis/controller-sdk-go

Index

Constants

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

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

const PyOpenSSLTimeDateTimeFormat = "2006-01-02T15:04:05"

PyOpenSSLTimeDateTimeFormat is a different date format to deal with the pyopenssl formatting http://www.pyopenssl.org/en/stable/api/crypto.html#OpenSSL.crypto.X509.get_notAfter

type Time

type Time struct {
	*time.Time
}

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

func (*Time) MarshalJSON

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

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

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

func (*Time) UnmarshalText

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

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

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier