Days implementation

+ getDate
+ dayTypes
This commit is contained in:
2022-05-06 01:07:13 +03:00
parent 1112a92023
commit c596812d30
6 changed files with 67 additions and 6 deletions

18
tests/dateTest.ts Normal file
View File

@@ -0,0 +1,18 @@
import TymeJS from "../src";
let startDate: Date = new Date();
for ( let i = 0; i < 7; i++ ) {
const a = new TymeJS(startDate);
console.log(startDate, {
single: a.getDate("single"),
double: a.getDate("double"),
dowsingle: a.getDate("dowsingle"),
dowdouble: a.getDate("dowdouble"),
full: a.getDate("long"),
short: a.getDate("short"),
});
startDate.setDate(startDate.getDate() + 1);
}

View File

@@ -10,7 +10,7 @@ for ( let i = 0; i < 12; i++ ) {
console.log({
single: a.getMonth("single"),
double: a.getMonth("double"),
full: a.getMonth("full"),
full: a.getMonth("long"),
short: a.getMonth("short"),
});
}