Skip to content

Commit 8de2a0d

Browse files
committed
Doc : Added a doc string for a helper
1 parent d6b9e87 commit 8de2a0d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

extension-requests/local-utils.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,12 @@ const addSpinner = (container) => {
252252
return removeSpinner;
253253
};
254254

255+
/**
256+
Generates a formatted date-time string from milliseconds.*
257+
@param {number} milliseconds - The number of milliseconds since January 1, 1970 00:00:00 UTC.
258+
@returns {string} The formatted date-time string in the format 'YYYY-MM-DDTHH:mm'.
259+
260+
*/
255261
function dateTimeString(milliseconds) {
256262
const date = new Date(milliseconds);
257263
return `${date.getFullYear()}-${String(date.getMonth() + 1).padStart(

0 commit comments

Comments
 (0)