mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
e84886aa37
The main change is the new rule in `eslint-config-jquery`: `template-curly-spacing`. Closes gh-5348 Ref jquery/eslint-config-jquery#21 Ref gh-5347
10 lines
325 B
JavaScript
10 lines
325 B
JavaScript
"use strict";
|
|
|
|
module.exports = function getTimestamp() {
|
|
const now = new Date();
|
|
const hours = now.getHours().toString().padStart( 2, "0" );
|
|
const minutes = now.getMinutes().toString().padStart( 2, "0" );
|
|
const seconds = now.getSeconds().toString().padStart( 2, "0" );
|
|
return `${ hours }:${ minutes }:${ seconds }`;
|
|
};
|