poi-plugin-akashic-records
Advanced tools
Comparing version 6.1.3 to 6.1.4
{ | ||
} |
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ { |
@@ -7,9 +7,17 @@ "use strict"; | ||
exports.dateToString = dateToString; | ||
function pad(str, max = 2) { | ||
let ret = `${str}`; | ||
while (ret.length < max) { | ||
ret = `0${ret}`; | ||
} | ||
return ret; | ||
} | ||
function dateToString(date) { | ||
const month = date.getMonth() < 9 ? `0${date.getMonth() + 1}` : `${date.getMonth() + 1}`; | ||
const day = date.getDate() < 9 ? `0${date.getDate()}` : `${date.getDate()}`; | ||
const hour = date.getHours() < 9 ? `0${date.getHours()}` : `${date.getHours()}`; | ||
const minute = date.getMinutes() < 9 ? `0${date.getMinutes()}` : `${date.getMinutes()}`; | ||
const second = date.getSeconds() < 9 ? `0${date.getSeconds()}` : `${date.getSeconds()}`; | ||
const month = pad(date.getMonth() + 1); | ||
const day = pad(date.getDate()); | ||
const hour = pad(date.getHours()); | ||
const minute = pad(date.getMinutes()); | ||
const second = pad(date.getSeconds()); | ||
return `${date.getFullYear()}/${month}/${day} ${hour}:${minute}:${second}`; | ||
} |
{ | ||
"name": "poi-plugin-akashic-records", | ||
"version": "6.1.3", | ||
"version": "6.1.4", | ||
"description": "logbook plugin for poi", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -0,0 +0,0 @@ [![NPM](https://nodei.co/npm/poi-plugin-akashic-records.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/poi-plugin-akashic-records/) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
2733133
58614