MyEasyDurationInt extension

Return Duration base on int input

ex: 1.seconds -> Duration(seconds: 1);

on

Properties

day → Duration

Available on int, provided by the MyEasyDurationInt extension

Return current int in Duration of days
no setter
dd → Duration

Available on int, provided by the MyEasyDurationInt extension

Short-hand for days
no setter
hr → Duration

Available on int, provided by the MyEasyDurationInt extension

Short-hand for hours
no setter
micSec → Duration

Available on int, provided by the MyEasyDurationInt extension

Short-hand for microseconds
no setter
miliseconds → Duration

Available on int, provided by the MyEasyDurationInt extension

Return current int in Duration of miliseconds
no setter
milSec → Duration

Available on int, provided by the MyEasyDurationInt extension

Short-hand for miliseconds
no setter
min → Duration

Available on int, provided by the MyEasyDurationInt extension

Short-hand for minutes
no setter
mm → Duration

Available on int, provided by the MyEasyDurationInt extension

Short-hand for months
no setter
months → Duration

Available on int, provided by the MyEasyDurationInt extension

Return current int in Duration of month (30 days / month)
no setter
sec → Duration

Available on int, provided by the MyEasyDurationInt extension

Short-hand for seconds
no setter
weeks → Duration

Available on int, provided by the MyEasyDurationInt extension

Return current int in Duration of weeks (7 days/ week)
no setter
wk → Duration

Available on int, provided by the MyEasyDurationInt extension

Short-hand for weeks
no setter
years → Duration

Available on int, provided by the MyEasyDurationInt extension

Return current int in Duration of years (356 days/ year)
no setter
yy → Duration

Available on int, provided by the MyEasyDurationInt extension

Short-hand for years
no setter

Methods

circles(Duration circleLength) → Duration

Available on int, provided by the MyEasyDurationInt extension

Return current int in Duration of circles (You decide circle length)
convertToMonthString() → String

Available on int, provided by the MyEasyDurationInt extension