time

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrParsingTime = errors.New("error parsing string to Time")
View Source
var GlobalTime = time.UTC

Functions

func String2Time

func String2Time(ctx context.Context, value *string) (*time.Time, error)

func String2TimeWithCustomLayout

func String2TimeWithCustomLayout(ctx context.Context, value *string, layout string) (*time.Time, error)

func Time2String

func Time2String(value time.Time) *string

Types

This section is empty.

Jump to

Keyboard shortcuts

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