DateTimeOffset¶
Represents a date and time value with a time zone offset.
1 | |
Capabilities¶
Creation¶
- DateTimeOffsetConstructor.constructor: Creates a value for the current local date, time, and offset.
- DateTimeOffsetConstructor.now: Returns a DateTimeOffset object that represents the current date and time, with the current time zone offset.
Parsing¶
- DateTimeOffsetConstructor.isValid: Tests whether a string matches the browser ISO-like date pattern.
- DateTimeOffsetConstructor.parse: Parses the specified string and returns a DateTimeOffset object.
- DateTimeOffsetConstructor.parseWithCulture: Parses the specified string using culture-specific formatting information and returns a DateTimeOffset object.
Instant and Offset¶
- DateTimeOffsetConstructor.timeZone: Returns the browser user's current offset in minutes using JavaScript
Date#getTimezoneOffsetsemantics.