1
0
mirror of synced 2024-11-28 08:30:48 +01:00

rectify week number

This commit is contained in:
n1073645 2020-08-17 10:40:00 +01:00
parent c9d9730726
commit 3bfddd708c
2 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ class ParseDateTime extends Operation {
"\nLeap year: " + date.isLeapYear() +
"\nDays in this month: " + date.daysInMonth() +
"\n\nDay of year: " + date.dayOfYear() +
"\nWeek number: " + date.weekYear() +
"\nWeek number: " + date.week() +
"\nQuarter: " + date.quarter();
return output;

View File

@ -656,7 +656,7 @@ Leap year: false
Days in this month: 31
Day of year: 187
Week number: 2001
Week number: 27
Quarter: 3`;
assert.strictEqual(result.toString(), expected);
}),