timetools

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultTimeFormat = time.RFC3339

DefaultTimeFormat 2006-01-02T15:04:05Z07:00

Functions

func StringToTime

func StringToTime(in string) (time.Time, error)

StringToTime deserialize string to time.Time with default time format

func TimeToString

func TimeToString(in time.Time) string

TimeToString serialize time.Time to string with default time format

Types

This section is empty.

Jump to

Keyboard shortcuts

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