add dayOfYear methods for moment.js

This commit is contained in:
Malesh
2014-12-15 09:26:46 +08:00
parent 72f8dbc007
commit f4f86328d1
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -124,6 +124,8 @@ moment().isoWeek();
moment().isoWeek(45);
moment().isoWeeks();
moment().isoWeeks(45);
moment().dayOfYear();
moment().dayOfYear(45);
var getMilliseconds: number = moment().milliseconds();
var getSeconds: number = moment().seconds();
+2
View File
@@ -210,6 +210,8 @@ interface Moment {
isoWeeks(d: number): Moment;
weeksInYear(): number;
isoWeeksInYear(): number;
dayOfYear(): number;
dayOfYear(d: number): Moment;
from(f: Moment): string;
from(f: Moment, suffix: boolean): string;