@js-joda/core
Advanced tools
Comparing version 3.1.0 to 3.2.0
@@ -6,2 +6,6 @@ Changelog | ||
### 3.2.0 | ||
* add typescript definitions for OffsetDateTime and OffsetTime #448 by jonfreedman | ||
### 3.1.0 | ||
@@ -8,0 +12,0 @@ |
{ | ||
"name": "@js-joda/core", | ||
"version": "3.1.0", | ||
"version": "3.2.0", | ||
"description": "a date and time library for javascript", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -0,1 +1,7 @@ | ||
/** | ||
* @copyright (c) 2016-present, Philipp Thürwächter & Pattrick Hüper & js-joda contributors | ||
* @copyright (c) 2007-present, Stephen Colebourne & Michael Nascimento Santos | ||
* @license BSD-3-Clause (see LICENSE in the root directory of this source tree) | ||
*/ | ||
import {ChronoField} from './temporal/ChronoField'; | ||
@@ -22,3 +28,7 @@ import {ChronoUnit} from './temporal/ChronoUnit'; | ||
export class OffsetDateTime extends DefaultInterfaceTemporal{ | ||
/** | ||
* A date-time with an offset from UTC/Greenwich in the ISO-8601 calendar system, | ||
* such as 2007-12-23T10:15:30+01:00. | ||
*/ | ||
export class OffsetDateTime extends DefaultInterfaceTemporal { | ||
/** | ||
@@ -722,2 +732,10 @@ * @param {TemporaroAccessor} temporal | ||
/** | ||
* | ||
* @return {string} same as {@link LocalDateTime.toString} | ||
*/ | ||
toJSON() { | ||
return this.toString(); | ||
} | ||
/** | ||
* @param {DateTimeFormatter} formatter | ||
@@ -724,0 +742,0 @@ * @return {string} |
@@ -0,1 +1,7 @@ | ||
/** | ||
* @copyright (c) 2016-present, Philipp Thürwächter & Pattrick Hüper & js-joda contributors | ||
* @copyright (c) 2007-present, Stephen Colebourne & Michael Nascimento Santos | ||
* @license BSD-3-Clause (see LICENSE in the root directory of this source tree) | ||
*/ | ||
import {ChronoField} from './temporal/ChronoField'; | ||
@@ -17,2 +23,5 @@ import {ChronoUnit} from './temporal/ChronoUnit'; | ||
/** | ||
* A time with an offset from UTC/Greenwich in the ISO-8601 calendar system, such as 10:15:30+01:00. | ||
*/ | ||
export class OffsetTime extends DefaultInterfaceTemporal { | ||
@@ -594,2 +603,10 @@ /** | ||
} | ||
/** | ||
* | ||
* @return {string} same as {@link LocalDateTime.toString} | ||
*/ | ||
toJSON() { | ||
return this.toString(); | ||
} | ||
} | ||
@@ -596,0 +613,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3986212
51433