Moment: Add string overloads for month and day

This commit is contained in:
benfo
2013-07-16 06:16:57 +02:00
parent 917117d837
commit 93cd50d5bb
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -70,7 +70,9 @@ moment().minutes(30);
moment().hours(12);
moment().date(5);
moment().day(5);
moment().day("Sunday");
moment().month(5);
moment().month("January");
moment().year(1984);
moment().startOf('year');
moment().month(0).date(1).hours(0).minutes(0).seconds(0).milliseconds(0);
+2
View File
@@ -80,8 +80,10 @@ interface Moment {
year(y: number): Moment;
year(): number;
month(M: number): Moment;
month(M: string): Moment;
month(): number;
day(d: number): Moment;
day(d: string): Moment;
day(): number;
date(d: number): Moment;
date(): number;