mirror of
https://github.com/Ku6epXBOCTuK/easy-png-tools.git
synced 2026-11-15 17:58:18 +00:00
chore: clear lint rules warns: comments, tests
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
const PAD2 = (n: number) => String(n).padStart(2, "0");
|
||||
|
||||
/**
|
||||
* Мини-форматтер штампа даты: токены YYYY MM DD hh mm ss заменяются
|
||||
* значениями локального времени, остальные символы остаются как есть.
|
||||
* Mini date-stamp formatter: tokens YYYY MM DD hh mm ss are replaced with
|
||||
* local time values, other characters are kept as-is.
|
||||
*/
|
||||
export function formatStamp(date: Date, pattern: string): string {
|
||||
return pattern.replace(/YYYY|MM|DD|hh|mm|ss/g, (token) => {
|
||||
|
||||
Reference in New Issue
Block a user