Skip to content

Commit

Permalink
Updated README about when use Date Directive.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ernesto Perez Amigo committed Dec 22, 2017
1 parent 8bc3f19 commit 013be3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,8 @@ And we get this output data:
```
As we see, the directives is a easy way to format output data on queries, and it's can be put together like a chain.

**NOTE**: The *date* directive take a string of tokens, this tokens are the common of JavaScript date format.
**IMPORTANT NOTE**: The *date* directive only work with datetime returned as String Type and take a string of tokens,
this tokens are the common of JavaScript date format.

**List of possible date's tokens**:
"YYYY", "YY", "WW", "W", "DD", "DDDD", "d", "ddd", "dddd", "MM", "MMM", "MMMM", "HH", "hh", "mm", "ss", "A", "ZZ", "z".
Expand Down
3 changes: 2 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,8 @@ And we get this output data:
As we see, the directives is a easy way to format output data on queries, and it's can be put together like a chain.

**NOTE**: The *date* directive take a string of tokens, this tokens are the common of JavaScript date format.
**IMPORTANT NOTE**: The *date* directive only work with datetime returned as Graphene String Type not with normal
Graphene DateTime, Time or Date Types and take a string of tokens, this tokens are the common of JavaScript date format.

**List of possible date's tokens**:
"YYYY", "YY", "WW", "W", "DD", "DDDD", "d", "ddd", "dddd", "MM", "MMM", "MMMM", "HH", "hh", "mm", "ss", "A", "ZZ", "z".
Expand Down

0 comments on commit 013be3b

Please sign in to comment.