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

Update DateTime.mjs

Add test for time-delta
This commit is contained in:
tomgond 2024-02-21 19:55:09 +02:00 committed by GitHub
parent 61d587a4a5
commit d2ff03cea4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -31,4 +31,26 @@ TestRegister.addTests([
},
],
},
{
name: "DateTime Delta Positive",
input: "20/02/2024 13:36:00",
expectedOutput: "20/02/2024 13:37:00",
recipeConfig: [
{
op: "DateTime Delta",
args: ["Standard date and time", "DD/MM/YYYY HH:mm:ss", "+0.0:01:0"],
},
],
},
{
name: "DateTime Delta Negative",
input: "20/02/2024 14:37:00",
expectedOutput: "20/02/2024 13:37:00",
recipeConfig: [
{
op: "DateTime Delta",
args: ["Standard date and time", "DD/MM/YYYY HH:mm:ss", "-0.1:00:0"],
},
],
},
]);