AccessorsDateTimeExtension extension

Extension on DateTime providing additional calendar accessors.

on

Properties

dayOfYear → int

Available on DateTime, provided by the AccessorsDateTimeExtension extension

The day in the year [1...366].
no setter
daysInMonth → int

Available on DateTime, provided by the AccessorsDateTimeExtension extension

The number of days in this month (28, 29, 30, or 31).
no setter
daysInYear → int

Available on DateTime, provided by the AccessorsDateTimeExtension extension

The number of days in this year (365 or 366).
no setter
hour12 → int

Available on DateTime, provided by the AccessorsDateTimeExtension extension

The hour in the day in 12-hour clock [1...12].
no setter
isLeapYear → bool

Available on DateTime, provided by the AccessorsDateTimeExtension extension

Whether this is a leap year, or not.
no setter
quarter → int

Available on DateTime, provided by the AccessorsDateTimeExtension extension

The quarter [1...4].
no setter
weekNumber → int

Available on DateTime, provided by the AccessorsDateTimeExtension extension

The ISO week number [1..53].
no setter
weeksInYear → int

Available on DateTime, provided by the AccessorsDateTimeExtension extension

The number of weeks in this year (52 or 53).
no setter
weekYear → int

Available on DateTime, provided by the AccessorsDateTimeExtension extension

The ISO week year.
no setter