timeutil

package
v1.7.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatISO8601 added in v0.5.0

func FormatISO8601(dateTime time.Time) string

FormatISO8601 returns the ISO8601 string format for the dateTime.

func MustParseISO8601 added in v0.5.0

func MustParseISO8601(dateTime string) time.Time

MustParseISO8601 returns time or panics. Mostly needed for tests.

func ParseISO8601

func ParseISO8601(dateTime string) (time.Time, error)

ParseISO8601 parses string as ISO8601 date. Note that the format allows different timezones, also time is optional, so we have to list all possible formats

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL