Files
DefinitelyTyped/fromnow/fromnow-tests.ts
2016-03-27 01:46:28 +01:00

30 lines
437 B
TypeScript

/// <reference path="fromnow.d.ts" />
import fromnow = require( 'fromnow' );
function dateOnly() {
fromnow( '2015-12-31' );
}
function dateObjectOnly() {
fromnow( new Date() );
}
function maxChunks() {
fromnow( '2015-12-31', {
maxChunks: 12
});
}
function useAgo() {
fromnow( '2015-12-31', {
useAgo: true
});
}
function useAnd() {
fromnow( '2015-12-31', {
useAnd: true
});
}