Documentation
¶
Overview ¶
Package time provides time formatting utilities for the Drycc Platform.
Index ¶
Constants ¶
const DryccDatetimeFormat = "2006-01-02T15:04:05MST"
DryccDatetimeFormat is the standard date/time representation used in Drycc.
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
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Time ¶
Time represents the standard datetime format used across the Drycc Platform.
func (*Time) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface. The time is a quoted string in Drycc' datetime format.
func (*Time) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface. The time is expected to be a quoted string in Drycc' datetime format.
func (*Time) UnmarshalText ¶
UnmarshalText implements the encoding.TextUnmarshaler interface. The time is expected to be in Drycc' datetime format.