Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Clock = clocks.System()
)
Functions ¶
func Now ¶
Now returns time.Now() or time value based on the `clock` flag. Use this function to fake time inside hugo.
Types ¶
type AsTimeProvider ¶
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.