DurationScrewdriver extension
provides extensions for Duration.
- on
Properties
- absoluteHours → int
-
Available on Duration, provided by the DurationScrewdriver extension
Returns remaining minutes after deriving days.no setter - absoluteMinutes → int
-
Available on Duration, provided by the DurationScrewdriver extension
Returns remaining minutes after deriving hours.no setter - absoluteSeconds → int
-
Available on Duration, provided by the DurationScrewdriver extension
Returns remaining minutes after deriving minutes.no setter - after → DateTime
-
Available on Duration, provided by the DurationScrewdriver extension
Returns DateTime that is beforethis
duration.no setter - ago → DateTime
-
Available on Duration, provided by the DurationScrewdriver extension
Returns DateTime that is beforethis
duration.no setter - fromNow → DateTime
-
Available on Duration, provided by the DurationScrewdriver extension
Alias for afterno setter - inYears → int
-
Available on Duration, provided by the DurationScrewdriver extension
Returns the number of whole years spanned by this Duration. Please note that this does not account for leap year.no setter - isInDays → bool
-
Available on Duration, provided by the DurationScrewdriver extension
Returns true ifthis
duration equals to or more than a day.no setter - isInHours → bool
-
Available on Duration, provided by the DurationScrewdriver extension
Returns true ifthis
duration equals to or more than an hour but is less than a day.no setter - isInMillis → bool
-
Available on Duration, provided by the DurationScrewdriver extension
Returns true ifthis
duration equals to or more than a millisecond but is less than a second.no setter - isInMinutes → bool
-
Available on Duration, provided by the DurationScrewdriver extension
Returns true ifthis
duration equals to or more than a minute but is less than an hour.no setter - isInSeconds → bool
-
Available on Duration, provided by the DurationScrewdriver extension
Returns true ifthis
duration equals to or more than a second but is less than a minute.no setter - isInYears → bool
-
Available on Duration, provided by the DurationScrewdriver extension
Returns true ifthis
duration equals to or more than a year.no setter