package htime
import "github.com/gohugoio/hugo/common/htime"
Index ¶
- func ToTimeInDefaultLocationE(i interface{}, location *time.Location) (tim time.Time, err error)
- type TimeFormatter
Functions ¶
func ToTimeInDefaultLocationE ¶
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 ¶
- Version
- v0.95.0
- Published
- Mar 16, 2022
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 3 hours ago –
Tools for package owners.