0.5.2 • Published 4 months ago

oadate v0.5.2

Weekly downloads
1
License
MIT
Repository
github
Last release
4 months ago

oadate

Convert between native JS Date and OA Date (OLE Automation Date)

Usage

import { OADateToDate, DateToOADate } from '../index.mjs'

OADateToDate(44324) // converts OA Date to JS Date using local timezone offset
OADateToDate(44324, 0) // pass 0 to convert to UTC
OADateToDate(44324, 180) // or any offset in minutes

DateToOADate(new Date()) // converts JS Date to OA Date using local timezone offset
DateToOADate(new Date(), 0) // pass 0 to convert from UTC
DateToOADate(new Date(), 180) // or any offset in minutes

Credits

LICENSE - MIT 2021 - Luiz Américo Uses code from https://github.com/markitondemand/moment-msdate

0.5.0

4 months ago

0.5.2

4 months ago

0.5.1

4 months ago

0.4.1

3 years ago

0.4.0

3 years ago

0.3.0

4 years ago

0.2.0

5 years ago

0.1.0

5 years ago