htime

package
v0.88.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: Apache-2.0 Imports: 5 Imported by: 18

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToTimeInDefaultLocationE

func ToTimeInDefaultLocationE(i interface{}, location *time.Location) (tim time.Time, err error)

Types

type TimeFormatter

type TimeFormatter struct {
	// contains filtered or unexported fields
}

TimeFormatter is locale aware.

func NewTimeFormatter

func NewTimeFormatter(ltr locales.Translator) TimeFormatter

func (TimeFormatter) Format

func (f TimeFormatter) Format(t time.Time, layout string) string

Jump to

Keyboard shortcuts

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