amztime

package
v0.0.0-...-fb0f190 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2022 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package amztime implements AWS specific time parsing and deviations

Index

Constants

This section is empty.

Variables

View Source
var ErrMalformedDate = errors.New("malformed date")

ErrMalformedDate always returned for dates that cannot be parsed.

Functions

func Parse

func Parse(amzDateStr string) (time.Time, error)

Parse parses date string via supported amz date formats.

func ParseHeader

func ParseHeader(timeStr string) (time.Time, error)

ParseHeader parses http.TimeFormat with an acceptable extension for http.TimeFormat - return time might be zero if the timeStr is invalid.

Types

This section is empty.

Jump to

Keyboard shortcuts

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