Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions tests/utils_deep_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ async function main() {
console.log('[1/2] Time Utilities');
const now = new Date();
console.log(` - Format Date: ${TimeUtils.formatDate(now)}`);
// Testing a Monday afternoon (Market should be open)
const monday = new Date(2024, 0, 15, 14, 0); // Jan 15, 2024 is MLK Day though!
// Let's pick a Tuesday Jan 16, 2024
// Jan 15, 2024 is MLK Day (market holiday), so test with Tuesday Jan 16, 2024.
const tuesday = new Date(2024, 0, 16, 14, 0);
console.log(` - Is Market Open (Jan 16, 14:00): ${TimeUtils.isMarketOpen(tuesday)}`);
console.log(` - Trading Days between Jan 1 and Jan 10: ${TimeUtils.tradingDays(new Date(2024, 0, 1), new Date(2024, 0, 10))}`);
Expand Down
Loading