0.1.8 • Published 1 year ago

iso-with-offset v0.1.8

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

iso-with-offset

Extension for Date

Example

import "iso-with-offset";

const date = new Date("2022-11-11 15:30").toISOStringWithKorOffset();

console.log(date) // 2022-11-11T15:30:00.000+09:00 (UTC + seoul offset)

const date2 = new Date("2022-01-01T00:00:00+09:00").toISOStringWithKorOffset();

console.log(date2) // 2022-01-01T00:00:00.000+09:00 (UTC + seoul offset)

const date3 = new Date(date2);

console.log(date3) // 2021-12-31T15:00:00.000Z (UTC)
0.1.8

1 year ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago