Skip to content

Commit

Permalink
Documentation for k and kk parsing (#400)
Browse files Browse the repository at this point in the history
  • Loading branch information
EzequielB authored and maggiepint committed Mar 10, 2017
1 parent e7949cd commit 8ef80f2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/moment/01-parsing/03-string-format.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ For these, the lowercase tokens use the locale aware week start days, and the up
| -------------- | -------- | ----------- |
| `H HH` | `0..23` | 24 hour time |
| `h hh` | `1..12` | 12 hour time used with `a A`. |
| `k kk` | `1..24` | 24 hour time from 1 to 24 |
| `a A` | `am pm` | Post or ante meridiem (Note the one character `a p` are also considered valid) |
| `m mm` | `0..59` | Minutes |
| `s ss` | `0..59` | Seconds |
Expand All @@ -92,6 +93,8 @@ LLLL`. They were added in version **2.2.1**, except `LTS` which was added

`X` was added in version **2.0.0**.

`k kk` was added in version **2.18.0**

Unless you specify a time zone offset, parsing a string will create a date in the current time zone.

```js
Expand Down

0 comments on commit 8ef80f2

Please sign in to comment.