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 01:07:13 +03:00
|
|
|
import TymeJS from "../src";
|
|
|
|
|
2022-05-07 13:49:57 +03:00
|
|
|
let d: Date = new Date();
|
2022-05-06 01:07:13 +03:00
|
|
|
|
|
|
|
for ( let i = 0; i < 7; i++ ) {
|
2022-05-07 13:49:57 +03:00
|
|
|
|
|
|
|
const a = new TymeJS(d);
|
|
|
|
console.log(d, {
|
|
|
|
single: a.getDate("j"),
|
|
|
|
double: a.getDate("d"),
|
|
|
|
dowdouble: a.getDate("w"),
|
|
|
|
full: a.getDate("l"),
|
|
|
|
short: a.getDate("D"),
|
2022-05-06 01:07:13 +03:00
|
|
|
});
|
|
|
|
|
2022-05-07 13:49:57 +03:00
|
|
|
d.setDate(d.getDate() + 1);
|
2022-05-06 01:07:13 +03:00
|
|
|
}
|
|
|
|
|