12fromto24hours 中文文档教程
12 From To 24 Hours
覆盖率100%
Easy and tiny way to switch between 24 and 12 hours systems.
Installation
# npm
$ npm install 12fromto24hours
# yarn
$ yarn add 12fromto24hours
Usage
使用方法简单易行。 只需按照以下步骤操作:
const _12FromTo24Hours = require("12fromto24hours");
// From 12 to 24 ..
_12FromTo24Hours("8:00 PM"); // 20:00
// From 24 to 12 ..
_12FromTo24Hours("20:00"); // 8:00 PM
License
12 From To 24 Hours
Coverage 100%
Easy and tiny way to switch between 24 and 12 hours systems.
Installation
# npm
$ npm install 12fromto24hours
# yarn
$ yarn add 12fromto24hours
Usage
The method of use is simple and very easy. Just follow these steps:
const _12FromTo24Hours = require("12fromto24hours");
// From 12 to 24 ..
_12FromTo24Hours("8:00 PM"); // 20:00
// From 24 to 12 ..
_12FromTo24Hours("20:00"); // 8:00 PM