Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Clock = clocks.System()
)
Functions ¶
func Now ¶ added in v0.99.0
Now returns time.Now() or time value based on the `clock` flag. Use this function to fake time inside hugo.
Types ¶
type AsTimeProvider ¶ added in v0.100.2
AsTimeProvider is implemented by go-toml's LocalDate and LocalDateTime.
type TimeFormatter ¶
type TimeFormatter struct {
// contains filtered or unexported fields
}
TimeFormatter is locale aware.
func NewTimeFormatter ¶
func NewTimeFormatter(ltr locales.Translator) TimeFormatter
Click to show internal directories.
Click to hide internal directories.