This repository has been archived on 2024-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
Tyme.js/tests/monthTest.ts

18 lines
358 B
TypeScript

import TymeJS from "../src";
for ( let i = 0; i < 12; i++ ) {
let currentMonth: Date = new Date();
currentMonth.setMonth(i)
const a = new TymeJS(currentMonth);
console.log({
single: a.getMonth("single"),
double: a.getMonth("double"),
full: a.getMonth("full"),
short: a.getMonth("short"),
});
}