testilo 24.2.0 → 24.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/procs/util.js +3 -1
package/package.json
CHANGED
package/procs/util.js
CHANGED
|
@@ -20,7 +20,9 @@ const getTimeString = date => date.toISOString().slice(0, 19);
|
|
|
20
20
|
// Returns a string representing the date and time.
|
|
21
21
|
exports.getNowString = () => getTimeString(new Date());
|
|
22
22
|
// Returns a time stamp representing a date and time.
|
|
23
|
-
const getTimeStamp
|
|
23
|
+
const getTimeStamp
|
|
24
|
+
= exports.getTimeStamp
|
|
25
|
+
= date => getTimeString(date).replace(/[-:]/g, '').slice(2, 13);
|
|
24
26
|
// Returns a time stamp representing the date and time.
|
|
25
27
|
exports.getNowStamp = () => getTimeStamp(new Date());
|
|
26
28
|
// Inserts a character periodically in a string.
|