init(rawValue : UInt)
Creates a new calendar unit from the raw value.
新しいカレンダー単位を生の値から作成します。
Availability 有効性
Technology
struct Unit, @unchecked Sendable
Calendar units may be used as a bit mask to specify a combination of units. Values in this enumeration are equal to the corresponding constants in CFCalendar
.
カレンダー単位は、ビットマスクとして使われて、単位の組み合わせを指定するかもしれません。この列挙の中の値は、CFCalendar
の中の対応する定数と等しいです。
init(rawValue : UInt)
static var era: NSCalendar.Unit
static var year: NSCalendar.Unit
static var yearForWeekOfYear : NSCalendar.Unit
static var quarter: NSCalendar.Unit
static var month: NSCalendar.Unit
static var weekOfYear : NSCalendar.Unit
static var weekOfMonth : NSCalendar.Unit
static var weekday: NSCalendar.Unit
static var weekdayOrdinal : NSCalendar.Unit
static var day: NSCalendar.Unit
static var hour: NSCalendar.Unit
static var minute: NSCalendar.Unit
static var second: NSCalendar.Unit
static var nanosecond: NSCalendar.Unit
static var calendar: NSCalendar.Unit
static var timeZone : NSCalendar.Unit
static var NSMinuteCalendarUnit : NSCalendar.Unit
static var NSSecondCalendarUnit : NSCalendar.Unit
static var NSWeekdayCalendarUnit : NSCalendar.Unit
static var NSWeekdayOrdinalCalendarUnit : NSCalendar.Unit
static var NSQuarterCalendarUnit : NSCalendar.Unit
second
. In macOS 10.6 and earlier this was defined as equal to quarter
. In macOS 10.7 and later it is defined as (1 << 20)
.
カレンダーの四半期をsecond
として指定します。macOS 10.6以前ではこれはquarter
と等しいと定義されました。macOS 10.7以降ではそれは(1 << 20)
のように定義されます。
static var NSWeekOfMonthCalendarUnit : NSCalendar.Unit
static var NSWeekOfYearCalendarUnit : NSCalendar.Unit
static var NSYearForWeekOfYearCalendarUnit : NSCalendar.Unit
static var NSCalendarCalendarUnit : NSCalendar.Unit
static var NSTimeZoneCalendarUnit : NSCalendar.Unit
NSTimeZone
.
カレンダーのタイムゾーンをNSTimeZone
として指定します。
var calendarIdentifier : NSCalendar.Identifier
var firstWeekday : Int
var locale: Locale?
var timeZone : TimeZone
func maximumRange (of: NSCalendar.Unit) -> NSRange
func minimumRange (of: NSCalendar.Unit) -> NSRange
var minimumDaysInFirstWeek : Int
func ordinality(of: NSCalendar.Unit, in: NSCalendar.Unit, for: Date) -> Int
func range(of: NSCalendar.Unit, in: NSCalendar.Unit, for: Date) -> NSRange
func range(of: NSCalendar.Unit, start: AutoreleasingUnsafeMutablePointer<NSDate?>?, interval: UnsafeMutablePointer<TimeInterval>?, for: Date) -> Bool
func range(ofWeekendStart : AutoreleasingUnsafeMutablePointer<NSDate?>?, interval: UnsafeMutablePointer<TimeInterval>?, containing: Date) -> Bool