Permalink
Browse files

Merge branch 'release/0.1.0'

  • Loading branch information...
2 parents 51db3b9 + 3dc28b7 commit 030664fe193c2ba26d41bdf3692bc827c84cbf58 Rocky Meza committed May 1, 2012
Showing with 13 additions and 0 deletions.
  1. +13 −0 README.md
View
@@ -18,6 +18,19 @@ moment.fromIsocalendar([2011, 51, 5, 870]).format('LLLL');
// "Friday, December 23 2011 2:30 PM"
```
+### Getters and Setters
+This plugin additionally provides getters and setters for the ISO representation
+values.
+
+```javascript
+var m = moment([2012, 3, 8]); // Sunday, 2012 April 8th
+
+m.isoday(); // 7
+m.isoweek(); // 14
+
+m.isoday(6).format('YYYY-MM-DD'); // "2012-04-07"
+```
+
## How to test?
Make sure you have all the dependencies and run `make test`. If you want to
test in the browser, visit the `test/test.html` file.

0 comments on commit 030664f

Please sign in to comment.