Documentation ¶
Overview ¶
Package timestamp manage Unix timestamps
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type T ¶
type T struct {
// contains filtered or unexported fields
}
T is a unix timestamp with nanosecond precision.
func NewFromSecondsFloat64 ¶
NewFromSecondsFloat64 returns a timestamp instance loaded with the time passed as a float64 seconds since epoch.
func (T) IsZero ¶
IsZero reports whether t represents the Unix zero time instant, January 1, 1970 UTC.
func (T) MarshalJSON ¶
MarshalJSON turns this type instance into a byte slice.
func (*T) UnmarshalJSON ¶
UnmarshalJSON parses a byte slice and loads this type instance.
Click to show internal directories.
Click to hide internal directories.