@internationalized/date
Advanced tools
Comparing version 3.0.0-nightly-25f304dea-241008 to 3.0.0-nightly-262cc758b-241114
@@ -166,3 +166,3 @@ var $625ad1e1f4c43bc1$exports = require("./CalendarDate.main.js"); | ||
let millisecond = date.getUTCMilliseconds(); | ||
return new (0, $625ad1e1f4c43bc1$exports.ZonedDateTime)(year, month, day, timeZone, offset, hour, minute, second, millisecond); | ||
return new (0, $625ad1e1f4c43bc1$exports.ZonedDateTime)(year < 1 ? 'BC' : 'AD', year < 0 ? Math.abs(year) + 1 : year, month, day, timeZone, offset, hour, minute, second, millisecond); | ||
} | ||
@@ -169,0 +169,0 @@ function $4ae0260a69729f1d$export$e57ff100d91bd4b9(date, timeZone) { |
@@ -147,3 +147,3 @@ import {CalendarDate as $35ea8db9cb2ccb90$export$99faa760c7908e4f, CalendarDateTime as $35ea8db9cb2ccb90$export$ca871e8dbb80966f, Time as $35ea8db9cb2ccb90$export$680ea196effce5f, ZonedDateTime as $35ea8db9cb2ccb90$export$d3b7288e7994edea} from "./CalendarDate.module.js"; | ||
let millisecond = date.getUTCMilliseconds(); | ||
return new (0, $35ea8db9cb2ccb90$export$d3b7288e7994edea)(year, month, day, timeZone, offset, hour, minute, second, millisecond); | ||
return new (0, $35ea8db9cb2ccb90$export$d3b7288e7994edea)(year < 1 ? 'BC' : 'AD', year < 0 ? Math.abs(year) + 1 : year, month, day, timeZone, offset, hour, minute, second, millisecond); | ||
} | ||
@@ -150,0 +150,0 @@ function $11d87f3f76e88657$export$e57ff100d91bd4b9(date, timeZone) { |
{ | ||
"name": "@internationalized/date", | ||
"version": "3.0.0-nightly-25f304dea-241008", | ||
"version": "3.0.0-nightly-262cc758b-241114", | ||
"description": "Internationalized calendar, date, and time manipulation utilities", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
@@ -190,3 +190,3 @@ /* | ||
return new ZonedDateTime(year, month, day, timeZone, offset, hour, minute, second, millisecond); | ||
return new ZonedDateTime(year < 1 ? 'BC' : 'AD', year < 0 ? Math.abs(year) + 1 : year, month, day, timeZone, offset, hour, minute, second, millisecond); | ||
} | ||
@@ -193,0 +193,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
985909