date_now¶
Hook for updating dict objects with items.
Inputs¶
Name | Type | Default | Required | Description |
---|---|---|---|---|
format | str | %m-%d-%Y | True | Date time formatting per the official docs |
timestamp | bool | False | True | Output as timestamp. Precedence over format. |
utc | bool | False | True | Output in UTC. |
Arguments¶
Position | Argument | Type |
---|---|---|
1 | format | str |
Returns¶
str
Examples¶
Get current date / timestamp¶
now->: date_now
year->: date_now %Y
month_year->: date_now "%B %Y"
timestamp->: date_now --timestamp
timestamp_utc->: date_now --timestamp --utc