package
2.0.3+incompatible
Repository: https://github.com/chatterino/api.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
CreationDate returns the `time.Time`'s date formatted in the `02 Jan 2006` format Example output: 02 Dec 2016.
CreationDateRFC3339 parses the incoming string as an RFC3339-formatted date and then formats it into the `02 Jan 2006` format If the given string is not a valid RFC3339-formatted date, we will return an empty string Example output: 02 Dec 2016 See more: `CreationDate`.
CreationDateTime returns the `time.Time`'s date formatted in the `02 Jan 2006 • 15:04 UTC` format Example output: 02 Jan 2006 • 15:04 UTC.
CreationDateTimeUnix parses the incoming `int64` as a unix timestamp and then formats it with the CreationDateTime function Example output: 02 Jan 2006 • 15:04 UTC.
CreationDateUnix parses the incoming int64 as a unix timestamp and then returns the date in the `CreationDate` format.
Description formats the input description into a consistent format.
Duration takes a `time.Duration` and converts it to the nearest-second string output Example output: 01:59:59.
DurationPT takes a PT-formatted string `time.Duration` and converts it to the nearest-second string output using the `Duration` helper Example output: 01:59:59 See also: Duration.
DurationSeconds takes a `time.Duration` and converts it to a string in the following format: %gs where %g is the number of seconds contained within this duration Example output: 53s.
No description provided by the author
ShortDescription formats the input description as a short description.
Title formats the input title into a consistent format.