bdo-clock
A JavaScript Library to convert real time into Black Desert Online in game clock.
Install
npm install bdo-clock --save
Usage
const bdoClock = ; console;
Custom Date
This library uses moment.js, so it takes any parameter take moment()
can take.
; // "7:00 a.m."
Find out Day/Night Time
isDaytime; // true
Find next time day change to night or vice versa
nextDayNightChange; // "2018-06-08T23:40:00.000Z"
Find out time elapsed since 0 a.m. in game
See moment.Durations on how to use the returned duration object
timeElapsed; // 7
License
bdo-clock is freely distributable under the terms of the MIT license.