timeutil

package module
v0.0.0-...-5aa6467 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const ISO8601CompactFormat = "20060102T150405Z"

ISO8601CompactFormat is a layout for time.Format that prints a time value in the most compact ISO8601 format available. This assumes the time value is in UTC, and returns the time zone as 'Z'.

Variables

This section is empty.

Functions

func ParseISO8601Timestamp

func ParseISO8601Timestamp(s string) (time.Time, error)

ParseISO8601Timestamp converts an ISO 8601 timestamp into a time.Time result. Compared to time.Parse(time.RFC3339) and time.Parse(time.RFC3339Nano), this accepts the full range of ISO 8601 formats and the RFC 3339 variants.

Types

This section is empty.

Jump to

Keyboard shortcuts

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