npm.io
1.0.1 • Published 9 years ago

windows-timestamp

Licence
MIT
Version
1.0.1
Deps
0
Vulns
0
Weekly
0
Stars
2

Windows Timestamp

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

Keywords