diff options
Diffstat (limited to 'docs/content/en/functions/time/AsTime.md')
-rw-r--r-- | docs/content/en/functions/time/AsTime.md | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/docs/content/en/functions/time/AsTime.md b/docs/content/en/functions/time/AsTime.md index 92040f924..760329a13 100644 --- a/docs/content/en/functions/time/AsTime.md +++ b/docs/content/en/functions/time/AsTime.md @@ -3,17 +3,12 @@ title: time.AsTime description: Returns the given string representation of a date/time value as a time.Time value. categories: [] keywords: [] -action: - aliases: [time] - related: - - functions/time/Duration - - functions/time/Format - - functions/time/Now - - functions/time/ParseDuration - returnType: time.Time - signatures: ['time.AsTime INPUT [TIMEZONE]'] +params: + functions_and_methods: + aliases: [time] + returnType: time.Time + signatures: ['time.AsTime INPUT [TIMEZONE]'] aliases: [/functions/time] -toc: true --- ## Overview @@ -29,7 +24,7 @@ Hugo provides [functions] and [methods] to format, localize, parse, compare, and As shown above, the first argument must be a parsable string representation of a date/time value. For example: -{{% include "functions/time/_common/parsable-date-time-strings.md" %}} +{{% include "/_common/parsable-date-time-strings.md" %}} To override the default time zone, set the [`timeZone`] in your site configuration or provide a second argument to the `time.AsTime` function. For example: @@ -48,6 +43,6 @@ The order of precedence for determining the time zone is: [IANA Time Zone database]: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones [`time.Time`]: https://pkg.go.dev/time#Time -[`timeZone`]: /getting-started/configuration/#timezone +[`timeZone`]: /configuration/all/#timezone [functions]: /functions/time/ [methods]: /methods/time/ |