1.0.1 • Published 7 years ago

samay.js v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

samay.js

Convert future humanized date/time strings to date.

import Samay from 'samay';

const samay = new Samay();
// Supposing today is 24th May, 2017
samay.parseText('tomorrow at 8am'); // { value: dateObject, hasTime: true, samayType: 1 }

Install

npm install samay.js

DEPRECATED function

samay#parse has been deprecated in favour of samay#parseText which returns an object with some addition information.