mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
f47c6a8337
The main change is the new rule in `eslint-config-jquery`: `template-curly-spacing`. Closes gh-5347 Ref jquery/eslint-config-jquery#21 Ref gh-5348
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 }`;
|
|
};
|