weekOfYear
TypeScriptget weekOfYear(): DateFeaturesSwift declarationstatic let weekOfYear: DateFeaturesA feature representing the week within the year.
struct · iOS 18.0+ · SDK 27.1
struct DateFeaturesA set of date and time features. The choice of features for a particular task depends on the relevance of different date and time components. For example a dataset of weather data may require hour and day-of-year features, while a dataset of workout metrics may require second, hour, and weekday features.
get weekOfYear(): DateFeaturesSwift declarationstatic let weekOfYear: DateFeaturesA feature representing the week within the year.
get weekOfMonth(): DateFeaturesSwift declarationstatic let weekOfMonth: DateFeaturesA feature representing the week within the month.
get day(): DateFeaturesSwift declarationstatic let day: DateFeaturesA feature representing the day within the month.
get hour(): DateFeaturesSwift declarationstatic let hour: DateFeaturesA feature representing the hour within the day.
get month(): DateFeaturesSwift declarationstatic let month: DateFeaturesA feature representing the month within the year.
get minute(): DateFeaturesSwift declarationstatic let minute: DateFeaturesA feature representing the minute within the hour.
get second(): DateFeaturesSwift declarationstatic let second: DateFeaturesA feature representing the second within the minute.
get weekday(): DateFeaturesSwift declarationstatic let weekday: DateFeaturesA feature representing the weekday.
init(rawValue: number): DateFeaturesSwift declarationinit(rawValue: Int)Creates a feature from a raw value.
getRawValue($self: DateFeatures): numberSwift declarationvar rawValue: IntThe corresponding value of the raw type. A new instance initialized with `rawValue` will be equivalent to this instance. For example: enum PaperSize: String { case A4, A5, Letter, Legal } let selectedSize = PaperSize.Letter print(selectedSize.rawValue) // Prints "Letter" print(selectedSize == PaperSize(rawValue: selectedSize.rawValue)!) // Prints "true"
setRawValue($self: DateFeatures, value: number): voidSwift declarationvar rawValue: IntThe corresponding value of the raw type. A new instance initialized with `rawValue` will be equivalent to this instance. For example: enum PaperSize: String { case A4, A5, Letter, Legal } let selectedSize = PaperSize.Letter print(selectedSize.rawValue) // Prints "Letter" print(selectedSize == PaperSize(rawValue: selectedSize.rawValue)!) // Prints "true"
get dayOfYear(): DateFeaturesSwift declarationstatic let dayOfYear: DateFeaturesA feature representing the day within the year.
No declarations were skipped in this snapshot.