Documentation ¶
Index ¶
- Constants
- func CustomRelativeTime(a, b time.Time, albl, blbl string, magnitudes []RelativeTimeMagnitude) string
- func Ftoa(num float64) string
- func FtoaWithDigits(num float64, digits int) string
- func HumanizeTime(then time.Time) string
- func RelativeTime(a, b time.Time, albl, blbl string) string
- type Options
- type RelativeTimeMagnitude
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func CustomRelativeTime ¶
func CustomRelativeTime(a, b time.Time, albl, blbl string, magnitudes []RelativeTimeMagnitude) string
func FtoaWithDigits ¶
FtoaWithDigits converts a float to a string but limits the resulting string to the given number of decimal places, and no trailing zeros.
func HumanizeTime ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.