Simon Priet e69a613a37 feat: Created a mini nodeJS server with NewMan for testing without PostMan GUI.
This will mimic a run in a CD/CI environment or docker container.
2021-09-08 14:01:19 +02:00

14 lines
325 B
JavaScript

#!/usr/bin/env node
var strftime = require('./strftime.js');
var dates = [
'01-01-2017 00:00:00',
'03-25-2017 00:00:00',
'03-26-2017 00:00:00',
'03-27-2017 00:00:00',
'04-02-2017 00:00:00',
];
dates.forEach(function(d) {
console.log('strftime(%U, "' + d + '") = ' + strftime('%U', new Date(d)));
});