package htime

import "github.com/gohugoio/hugo/common/htime"

Index

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

time.go

Version
v0.91.2
Published
Dec 23, 2021
Platform
js/wasm
Imports
5 packages
Last checked
13 minutes ago

Tools for package owners.