mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Moment: Remove obsolete sod/eod function (Since 2.1.0)
This commit is contained in:
@@ -86,9 +86,7 @@ var getDay: number = moment().day();
|
||||
var getMonth: number = moment().month();
|
||||
var getYear: number = moment().year();
|
||||
|
||||
moment().sod();
|
||||
moment().hours(0).minutes(0).seconds(0).milliseconds(0);
|
||||
moment().eod();
|
||||
|
||||
var a3 = moment([2011, 0, 1, 8]);
|
||||
a3.hours();
|
||||
|
||||
Vendored
-3
@@ -94,9 +94,6 @@ interface Moment {
|
||||
milliseconds(ms: number): Moment;
|
||||
milliseconds(): number;
|
||||
|
||||
sod(): Moment; // Start of Day
|
||||
eod(): Moment; // End of Day
|
||||
|
||||
from(f: Moment): string;
|
||||
from(f: Moment, suffix: boolean): string;
|
||||
from(d: Date): string;
|
||||
|
||||
Reference in New Issue
Block a user