mirror of
https://github.com/gchq/CyberChef.git
synced 2024-11-02 14:11:02 +01:00
Merge branch 'n1073645-datetime'
This commit is contained in:
commit
d1bde23f00
@ -72,7 +72,7 @@ class ParseDateTime extends Operation {
|
|||||||
"\nLeap year: " + date.isLeapYear() +
|
"\nLeap year: " + date.isLeapYear() +
|
||||||
"\nDays in this month: " + date.daysInMonth() +
|
"\nDays in this month: " + date.daysInMonth() +
|
||||||
"\n\nDay of year: " + date.dayOfYear() +
|
"\n\nDay of year: " + date.dayOfYear() +
|
||||||
"\nWeek number: " + date.weekYear() +
|
"\nWeek number: " + date.week() +
|
||||||
"\nQuarter: " + date.quarter();
|
"\nQuarter: " + date.quarter();
|
||||||
|
|
||||||
return output;
|
return output;
|
||||||
|
@ -656,7 +656,7 @@ Leap year: false
|
|||||||
Days in this month: 31
|
Days in this month: 31
|
||||||
|
|
||||||
Day of year: 187
|
Day of year: 187
|
||||||
Week number: 2001
|
Week number: 27
|
||||||
Quarter: 3`;
|
Quarter: 3`;
|
||||||
assert.strictEqual(result.toString(), expected);
|
assert.strictEqual(result.toString(), expected);
|
||||||
}),
|
}),
|
||||||
|
Loading…
Reference in New Issue
Block a user