Skip to content

Commit abe0172

Browse files
committed
Add documentation for timestamp #230
1 parent 710db71 commit abe0172

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,20 @@ hash("foo")
310310
# ["name", "value"] => {"name":"value"}
311311
```
312312

313+
#### `timestamp`
314+
315+
Adds field or overwrites field with current timestamp.
316+
317+
Options:
318+
319+
- `format` patterns as in [java.text.SimpleDateFormat](https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html)
320+
- `timezone` as in [java.util.TimeZone](https://docs.oracle.com/javase/8/docs/api/java/util/TimeZone.html) (Standard: UTC)
321+
- `language` area codes as in [java.util.Locale](https://docs.oracle.com/javase/8/docs/api/java/util/Locale.html)
322+
323+
```perl
324+
timestamp("<targetField>", [, format: "<formatPattern>"][, timezone: "<timezoneCode>"][, language: "<areaCode>"])
325+
```
326+
313327
#### `format`
314328

315329
Replaces the value with a formatted (`sprintf`-like) version.

0 commit comments

Comments
 (0)