Skip to content

Commit 0982617

Browse files
sharkdpDavid Peter
authored and
David Peter
committed
Conversion function clarifications
1 parent ee4649d commit 0982617

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

book/src/conversion-functions.md

+6
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ The following functions are available for this purpose:
99
# Convert a date and time to a Unix timestamp
1010
now() -> unixtime
1111
12+
# Convert a date and time to a different timezone
13+
now() -> tz("Asia/Kathmandu")
14+
1215
# Convert a duration to days, hours, minutes, seconds
1316
10 million seconds -> human
1417
@@ -31,3 +34,6 @@ now() -> unixtime
3134
"numbat is awesome" -> uppercase
3235
"vier bis elf weiße Querbänder" -> lowercase
3336
```
37+
38+
Note that the `tz(…)` and `base(…)` calls above return *functions*, i.e. the right hand side of
39+
the conversion operator is still a function.

0 commit comments

Comments
 (0)