Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateDiff ¶
CalculateDiff calculate time diff between from and to
func CalculateDiffSince ¶
CalculateDiffSince calculate time diff between from and now
func CalculateDiffUntil ¶
CalculateDiffUntil calculate time diff between now and to(future)
Types ¶
type Formatter ¶ added in v0.2.0
type Formatter struct {
// contains filtered or unexported fields
}
Formatter is time diff put into words
func NewFormatter ¶ added in v0.2.0
NewFormatter returns new Formatter
func (*Formatter) Long ¶ added in v0.2.0
Long description (days, hours, minutes, seconds) of time diff
func (*Formatter) Nanoseconds ¶ added in v0.2.0
Nanoseconds display. ex 810821916 nanoseconds
type ParseError ¶
type ParseError struct {
// contains filtered or unexported fields
}
ParseError is used when parse failed
func (ParseError) Error ¶
func (e ParseError) Error() string
Click to show internal directories.
Click to hide internal directories.