-
Notifications
You must be signed in to change notification settings - Fork 22
[master < T618] Add docs for date module #999
Conversation
:::info | ||
|
||
The unit parameter supports the following values: | ||
- "ms" for milliseconds | ||
- "s" for seconds | ||
- "m" for minutes | ||
- "h" for hours | ||
- "d" for days | ||
|
||
::: | ||
|
||
:::info | ||
|
||
The format parameter supports values defined under [Python strftime format codes](https://docs.python.org/3/library/datetime.html#strftime-and-strptime-format-codes). | ||
|
||
::: | ||
|
||
:::info | ||
|
||
The timezone parameter can be specified with the database TZ identifier (text) name, as listed for [timezones](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). | ||
|
||
::: | ||
|
||
#### Output: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IF you have these many info boxes they kind of start losing meaning... :)
It's just regular text and info about the module
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really like it this way because it draws attention and those infos are really important since the usage of procedures is different from neo4j so I wanted it to be highlighted
mage/query-modules/python/date.md
Outdated
|
||
```cypher | ||
CALL date.parse("2023/08/03 14:30:00", "h", "%Y/%m/%d %H:%M:%S", "Europe/Zagreb") | ||
YIELD parsed RETURN parsed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
;
#### Usage: | ||
|
||
```cypher | ||
CALL temporal.format(duration({minute: 127}), "%H:%M:%S") YIELD formatted RETURN formatted |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ind1xa once you remove temporal I'll merge this. Everything looks OK.
@kgolubic done, i removed temporal |
Description
Added documentation for date module.
Pull request type
Please delete options that are not relevant and check the ones that are.
Related PRs and issues
PR this doc page is related to: memgraph/mage#291
Closes (link to issue):
Checklist: