timeutil

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package timeutil parses the RFC 3339 timestamps stored as text.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

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

Parse parses an RFC 3339 timestamp with or without fractional seconds.

func ParseOptional

func ParseOptional(s string) (*time.Time, error)

ParseOptional returns nil for an empty s and an error for a malformed one.

func ParseOrZero

func ParseOrZero(s string) time.Time

ParseOrZero returns the zero time when s is empty or malformed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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