Documentation
¶
Index ¶
- func FormatISO8601(t time.Time) string
- func FormatRFC2822(t time.Time) string
- func FormatRelative(t time.Time) string
- func FormatWithType(t time.Time, f Format) string
- func Parse(value string) (time.Time, error)
- func ParseAbsolute(value string) (time.Time, error)
- func SetNow(f func() time.Time)
- type Format
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatISO8601 ¶
Format timestamps in a ISO 8601-like format (same as in Git command)
func FormatRFC2822 ¶
Format timestamps in RFC 2822 format, often found in email messages (same as in Git command)
func FormatRelative ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.