Moment: Add a few more week related methods for version 2.1.0

This commit is contained in:
benfo
2013-07-16 06:20:37 +02:00
parent 93cd50d5bb
commit 0d28902919
2 changed files with 16 additions and 0 deletions
+8
View File
@@ -78,6 +78,14 @@ moment().startOf('year');
moment().month(0).date(1).hours(0).minutes(0).seconds(0).milliseconds(0);
moment().startOf('hour');
moment().minutes(0).seconds(0).milliseconds(0);
moment().weekday();
moment().weekday(0);
moment().isoWeekday(1);
moment().isoWeekday();
moment().weekYear(2);
moment().weekYear();
moment().isoWeekYear(3);
moment().isoWeekYear();
var getMilliseconds: number = moment().milliseconds();
var getSeconds: number = moment().seconds();
+8
View File
@@ -95,6 +95,14 @@ interface Moment {
seconds(): number;
milliseconds(ms: number): Moment;
milliseconds(): number;
weekday(): Moment;
weekday(d: number): Moment;
isoWeekday(): Moment;
isoWeekday(d: number): Moment;
weekYear(): Moment;
weekYear(d: number): Moment;
isoWeekYear(): Moment;
isoWeekYear(d: number): Moment;
from(f: Moment): string;
from(f: Moment, suffix: boolean): string;