flowtime
v2.0.0
Published
An unpredictable time library for JavaScript
Maintainers
Readme
flowtime for JavaScript
flowtime is an art project and thought experiment that challenges and reimagines our traditional understanding of time.
This package is a JavaScript implementation that contains the necessary functionality to convert the conventional time to flowtime.
Find more details on the flowtime official page.
Usage
Install the library from npm
npm i flowtimeUse the fromDate function to convert a JavaScript Date to a flowtime object
import flowtime from 'flowtime'
const now = new Date()
console.log(now)
// Sat Jul 21 2018 09:28:42 GMT-0700 (Pacific Daylight Time)
const time = flowtime.fromDate(now)
console.log(time)
// {hour: 11, minute: 49, second: 42, date: Sat Jul 21 2018 11:49:42 GMT-0700 (Pacific Daylight Time)}License
This package is MIT licensed. See LICENSE.
