Instance Propertyswift 6.0.3FoundationInternationalization->FoundationEssentials
timeZone
- iOS
- 15.0+
- macOS
- 12.0+
- tvOS
- 15.0+
- watchOS
- 8.0+
var timeZone: TimeZone
var timeZone: TimeZone
s20FoundationEssentials4DateV0A20InternationalizationE19VerbatimFormatStyleV8timeZoneAA04TimeI0Vvp
What are these?2FAQE
import FoundationEssentials
import FoundationInternationalization
struct VerbatimFormatStyle
Formats a Date
using the given format.
struct Date
Date
represents a single point in time.
struct TimeZone
TimeZone
defines the behavior of a time zone. Time zone values represent geopolitical regions. Consequently, these values have names for these regions. Time zone values also represent a temporal offset, either plus or minus, from Greenwich Mean Time (GMT) and an abbreviation (such as PST for Pacific Standard Time).
init(format: Date.FormatString, locale: Locale? = nil, timeZone: TimeZone, calendar: Calendar)
init(from decoder: any Decoder) throws
var attributed: Date.AttributedStyle { get }
Returns a type erased attributed variant of this style.
var attributedStyle: Date.VerbatimFormatStyle.Attributed { get }
Return the type preserving attributed variant of this style.
var calendar: Calendar
var locale: Locale?
Use system locale if nil or unspecified.
var parseStrategy: Date.ParseStrategy { get }
func consuming(_ input: String, startingAt index: String.Index, in bounds: Range<String.Index>) throws -> (upperBound: String.Index, output: Date)?
func discreteInput(after input: Date) -> Date?
func discreteInput(before input: Date) -> Date?
func format(_ value: Date) -> String
func input(after input: Date) -> Date?
func input(before input: Date) -> Date?
func locale(_ locale: Locale) -> Date.VerbatimFormatStyle
@dynamicMemberLookup struct Attributed
The type preserving attributed variant of this style.
typealias RegexOutput = Date