1.0.1 • Published 7 years ago

windows-timestamp v1.0.1

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

Windows Timestamp :alarm_clock:

Function that create a JavaScript Date from a Windows Timestamp.

Installation

npm install windows-timestamp

Usage

Parameter

Any valid windows timestamp. Accepts both strings and integers.

Example

const win_time = require('windows-timestamp')

let js_date = win_time('131461446367662144')

let js_same_date = new Date(win_time('131461446367662144').getTime())

let js_day = win_time('131461446367662144').getDay()

Test

npm test