0.1.10-beta • Published 5 years ago
fast-time-input v0.1.10-beta
Fast Time Input
Shortcodes for time input
Save time inputting dates by writing shortcut values and have them converted to time strings e.g. 130p => 01:30 PM
. It makes entering large amount of date entries really fast.
List of features
- Converts shortcode times to time strings
- Displays time in 12 and 24 hours
- Specify AM
a
oram
or PM usingp
orpm
, defaults to AM e.g.545p => 05:45 PM
and220a => 2:20a
Installation
$ npm install --save fast-time-input
or
$ yarn add fast-time-input
Examples Conversions
Single and double digits
1p => 1:00 PM
12p => 12:00 PM
13pm => 1:00 PM
Triple digits
130 => 1:30
125 => 1:25
Quadruple Digits
0530 => 5:30
1555 => 15:55
Code Demo
import { parse } "fast-time-input";
result = parse("130p");
consle.log(result); // => prints "01:30 PM"
Contributing
If you find any bugs or issues let me know.
License
This project is licensed under the MIT License
0.1.10-beta
5 years ago
0.1.9-beta
5 years ago
0.1.8-beta
5 years ago
0.1.7-alpha
5 years ago
0.1.6-alpha
5 years ago
0.1.5-alpha
5 years ago
0.1.4-alpha
5 years ago
0.1.3-alpha
5 years ago
0.1.2-alpha
5 years ago
0.1.1-alpha
5 years ago
0.1.0-alpha
5 years ago