htime

package
Version: v0.88.1 Latest Latest
Warning

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

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

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

Source Files

Jump to

Keyboard shortcuts

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