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
341 B
TypeScript
Raw Normal View History

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("n"),
double: a.getMonth("m"),
full: a.getMonth("F"),
short: a.getMonth("M"),
});
}