12345678910 |
- 'use strict';
- module.exports = function lastModifiedToString(stat) {
- const t = new Date(stat.mtime);
- return (('0' + (t.getDate())).slice(-2) + '-' +
- t.toLocaleString('default', { month: 'short' }) + '-' +
- t.getFullYear() + ' ' +
- ('0' + t.getHours()).slice(-2) + ':' +
- ('0' + t.getMinutes()).slice(-2));
- };
|