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.
2022-05-06 00:45:27 +03:00
|
|
|
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({
|
2022-05-07 13:49:57 +03:00
|
|
|
single: a.getMonth("n"),
|
|
|
|
double: a.getMonth("m"),
|
|
|
|
full: a.getMonth("F"),
|
|
|
|
short: a.getMonth("M"),
|
2022-05-06 00:45:27 +03:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|