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.89.2
Published
Nov 8, 2021
Platform
darwin/amd64
Imports
5 packages
Last checked
25 minutes ago

Tools for package owners.