utils

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2025 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Iso8601         string = "iso8601"
	Rfc2822         string = "rfc2822"  // timezone name
	Rfc2822z        string = "rfc2822z" // explicit timezone
	Rfc3339         string = "rfc3339"
	TimestampSecs   string = "unix_timestamp_secs"
	TimestampMillis string = "unix_timestamp_millis"
	TimestampMicros string = "unix_timestamp_micros"
	TimestampNanos  string = "unix_timestamp_nanos"
)
View Source
const Rfc2822Layout string = "%a, %d %b %Y %T %Z"
View Source
const Rfc2822zLayout string = "%a, %d %b %Y %T %z"

Variables

This section is empty.

Functions

func ParseTime

func ParseTime(value any, timeOutputFormat string) (time.Time, error)

Parses a value into Time given a timeOutputFormat. The conversion only works with float64 as this is what we get when parsing a response.

Types

This section is empty.

Jump to

Keyboard shortcuts

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