Skip to content

Commit

Permalink
Merge pull request #191 from SirZach/patch-1
Browse files Browse the repository at this point in the history
The examples are passing in two dates instead of just one
  • Loading branch information
jasonmit authored Oct 14, 2016
2 parents da9f91d + bd90305 commit b374b55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Ships with the following computed property macros: `duration`, `humanize`, `loca

```hbs
{{moment-format date outputFormat inputFormat}} {{!-- outputFormat and inputFormat is optional --}}
{{moment-from-now (now) date hideSuffix=true}} {{!-- hideSuffix is optional --}}
{{moment-from-now (now) hideSuffix=true}} {{!-- hideSuffix is optional --}}
{{moment-to-now (unix timeStamp) date hidePrefix=true}} {{!-- hidePrefix is optional --}}
{{moment-duration number units}} {{!-- units is optional --}}
{{moment-calendar date referenceDate}} {{!-- reference date is optional --}}
Expand All @@ -45,7 +45,7 @@ Ships with the following computed property macros: `duration`, `humanize`, `loca
### Live Updating of Displayed Time

```hbs
{{moment-from-now (now) date interval=1000}} // interval is in ms
{{moment-from-now (now) interval=1000}} // interval is in ms
```

Recomputes the time ago every 1-second (1000 milliseconds). This is useful for "live" updating as time elapses.
Expand Down

0 comments on commit b374b55

Please sign in to comment.