mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
15 lines
362 B
TypeScript
15 lines
362 B
TypeScript
import moment = require("moment");
|
|
import * as momentPreciseRange from "moment-precise-range-plugin";
|
|
|
|
// Static methods
|
|
const m1 = moment.utc();
|
|
const m2 = moment.utc();
|
|
moment.preciseDiff(m1, m2);
|
|
moment.preciseDiff(m1, m2, true);
|
|
moment.preciseDiff(m1, m2, false);
|
|
|
|
// Instance methods
|
|
m1.preciseDiff(m2);
|
|
m1.preciseDiff(m2, true);
|
|
m1.preciseDiff(m2, false);
|