Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 1.18 KB

File metadata and controls

23 lines (16 loc) · 1.18 KB

IntlDateTimeFormatPart

Namespace: SpawnDev.SpawnJS.JSObjects
Inherits: SpawnJSObject
Source: JSObjects/IntlDateTimeFormatPart.cs
MDN Reference: IntlDateTimeFormatPart on MDN

Represents a part of a formatted date/time string returned by Intl.DateTimeFormat.formatToParts() https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/formatToParts

Constructors

Signature Description
IntlDateTimeFormatPart(SpawnJSObjectReference _ref) Deserialization constructor

Properties

Property Type Access Description
Type string get The type of the token. Possible values are: "day", "dayPeriod", "era", "fractionalSecond", "hour", "literal", "minute", "month", "relatedYear", "second", "timeZoneName", "weekday", "year", "yearName"
Value string get The string value of the token
Source string? get The source of the token. Possible values are: "shared", "startRange", "endRange". Only present in formatRangeToParts() results.