aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorsqwishy <somebody@froghat.ca>2020-02-25 14:44:20 -0800
committerDrew DeVault <sir@cmpwn.com>2020-02-25 17:45:29 -0500
commit31489e3baaa0e096cf01e9dbf3884aeaf65e579d (patch)
treef976284ba0f669656ae426c1cbcd161466241914 /doc
parent5ba1569734be25f5f696b85c79788392a12bb0a3 (diff)
downloadaerc-31489e3baaa0e096cf01e9dbf3884aeaf65e579d.tar.gz
note in aerc-templates.7.scd for toLocal function
Diffstat (limited to 'doc')
-rw-r--r--doc/aerc-templates.7.scd7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/aerc-templates.7.scd b/doc/aerc-templates.7.scd
index a681fb2a..dc3ee306 100644
--- a/doc/aerc-templates.7.scd
+++ b/doc/aerc-templates.7.scd
@@ -47,6 +47,8 @@ available always.
The _dateFormat_ function can be used to format the date and time.
+ The _toLocal_ function converts a time to the local time zone.
+
Example:
Format the date to go's time package format options.
@@ -54,6 +56,11 @@ available always.
{{dateFormat .Date "Mon Jan 2 15:04:05 -0700 MST 2006"}}
```
+ Format the date in the local time zone.
+ ```
+ {{dateFormat (.Date | toLocal) "Mon Jan 2 15:04:05 -0700 MST 2006"}}
+ ```
+
*Subject*
The subject of the email is available for quoted reply and forward.