Comparing version 1.3.2 to 1.3.3
# Changelog | ||
## 1.3.3 | ||
Documentation fixes | ||
## 1.3.2 | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "luxon", | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"description": "Immutable date wrapper", | ||
@@ -5,0 +5,0 @@ "author": "Isaac Cambron", |
@@ -173,6 +173,6 @@ import { isUndefined, isNumber, normalizeObject, customInspectSymbol } from './impl/util'; | ||
* * **Creation** To create a Duration, use {@link Duration.fromMillis}, {@link Duration.fromObject}, or {@link Duration.fromISO}. | ||
* * **Unit values** See the {@link years}, {@link months}, {@link weeks}, {@link days}, {@link hours}, {@link minutes}, {@link seconds}, {@link milliseconds} accessors. | ||
* * **Configuration** See {@link locale} and {@link numberingSystem} accessors. | ||
* * **Transformation** To create new Durations out of old ones use {@link plus}, {@link minus}, {@link normalize}, {@link set}, {@link reconfigure}, {@link shiftTo}, and {@link negate}. | ||
* * **Output** To convert the Duration into other representations, see {@link as}, {@link toISO}, {@link toFormat}, and {@link toJSON} | ||
* * **Unit values** See the {@link Duration.years}, {@link Duration.months}, {@link Duration.weeks}, {@link Duration.days}, {@link Duration.hours}, {@link Duration.minutes}, {@link Duration.seconds}, {@link Duration.milliseconds} accessors. | ||
* * **Configuration** See {@link Duration.locale} and {@link Duration.numberingSystem} accessors. | ||
* * **Transformation** To create new Durations out of old ones use {@link Duration.plus}, {@link Duration.minus}, {@link Duration.normalize}, {@link Duration.set}, {@link Duration.reconfigure}, {@link Duration.shiftTo}, and {@link Duration.negate}. | ||
* * **Output** To convert the Duration into other representations, see {@link Duration.as}, {@link Duration.toISO}, {@link Duration.toFormat}, and {@link Duration.toJSON} | ||
* | ||
@@ -338,6 +338,15 @@ * There's are more methods documented below. In addition, for more information on subtler topics like internationalization and validity, see the external documentation. | ||
/** | ||
* Returns a string representation of this Duration formatted according to the specified format string. | ||
* Returns a string representation of this Duration formatted according to the specified format string. The duration will be converted to the set of units in the format string using {@link Duration.shiftTo} and the Durations's conversion accuracy setting. You may use these tokens: | ||
* * `S` for milliseconds | ||
* * `s` for seconds | ||
* * `m` for minutes | ||
* * `h` for hours | ||
* * `d` for days | ||
* * `M` for months | ||
* * `y` for years | ||
* @param {string} fmt - the format string | ||
* @param {Object} opts - options | ||
* @param {boolean} [opts.floor=true] - floor numerical values | ||
* @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toFormat("y d s") //=> "1 6 2" | ||
* @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toFormat("M S") //=> "12 518402000" | ||
* @return {string} | ||
@@ -344,0 +353,0 @@ */ |
@@ -0,0 +0,0 @@ import Duration from '../duration'; |
@@ -0,0 +0,0 @@ import { hasFormatToParts, hasIntl, padStart, roundTo } from './util'; |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ import { customInspectSymbol } from './impl/util'; |
@@ -0,0 +0,0 @@ import LocalZone from './zones/localZone'; |
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 not supported yet
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 not supported yet
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
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
37
28653
2253708
1