Skip to content

Commit 03b4221

Browse files
authored
Merge branch 'main' into groupsNSuites
2 parents 4855b33 + 37469a5 commit 03b4221

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/content/_shared/handlebars-helpers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ sitemapExclude: true
55
|----------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
66
| `{{REGION}}` | Resolves to the AWS region name, i.e. us-east-1. |
77
| `{{$UUID}}` | Generates a random UUID/v4, i.e. 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d. |
8-
| `{{$RANDOM_NUMBER}}` | Generates a random decimal number between 0 and 1000, i.e. 345. |
8+
| `{{$RANDOM_NUMBER}}` | Generates a random decimal number between 0 and 10000, i.e. 345. |
99
| `{{moment}}` | Generates a date or time using **moment.js** and allows for formatting:<br><br> <ul> <li>`{{moment "YYYY-MM-DD"}}` generates a date, i.e. 2020-08-26</li> <li>`{{moment "2 days ago" "YYYY-MM-DD"}}` generates the date two days ago: 2020-08-24</li> <li>`{{moment "last week" "X"}}` generates a UNIX timestamp from last week: 1597924480</li> </ul> |
1010

1111
A practical example of using the `{{moment}}` helper would be setting the pagination options on a typical API endpoint:

0 commit comments

Comments
 (0)