RDateTime extension
Properties
dateOnly
→ DateTime
no setter
isAm
→ bool
true
if the date in the morning, false
otherwise.
no setter
isFriday
→ bool
return true
if the date is Friday, false
otherwise.
no setter
isInApril
→ bool
return true
if the date is In April, false
otherwise.
no setter
isInAugust
→ bool
return true
if the date is In August, false
otherwise.
no setter
isInDecember
→ bool
return true
if the date is In December, false
otherwise.
no setter
isInFebruary
→ bool
return true
if the date is In February, false
otherwise.
no setter
isInJanuary
→ bool
return true
if the date is In January, false
otherwise.
no setter
isInJuly
→ bool
return true
if the date is In July, false
otherwise.
no setter
isInJune
→ bool
return true
if the date is In June, false
otherwise.
no setter
isInMarch
→ bool
return true
if the date is In March, false
otherwise.
no setter
isInMay
→ bool
return true
if the date is In May, false
otherwise.
no setter
isInNovember
→ bool
return true
if the date is In November, false
otherwise.
no setter
isInOctober
→ bool
return true
if the date is In October, false
otherwise.
no setter
isInSeptember
→ bool
return true
if the date is In September, false
otherwise.
no setter
isInTheFuture
→ bool
return true
if the date is In The Future, false
otherwise.
no setter
isInThePast
→ bool
return true
if the date is In The past, false
otherwise.
no setter
isInThisMonth
→ bool
return true
if the date is In This Month, false
otherwise.
no setter
isInThisYear
→ bool
return true
if the date is In This Year, false
otherwise.
no setter
isLastFridayThisMonth
→ bool
return true
the last friday of the month
no setter
isLastMondayThisMonth
→ bool
return true
the last monday of the month
no setter
isLastSaturdayThisMonth
→ bool
return true
the last saturday of the month
no setter
isLastSundayThisMonth
→ bool
return true
the last sunday of the month
no setter
isLastThursdayThisMonth
→ bool
return true
the last thursday of the month
no setter
isLastTuesdayThisMonth
→ bool
return true
the last tuesday of the month
no setter
isLastWednesdayThisMonth
→ bool
return true
the last wednesday of the month
no setter
isLeapYear
→ bool
return true
the first saturday of the month
TODO :: date wont work with last month of the year
returns true if date is between tow dates
returns true if date year is leaap year
no setter
isMonday
→ bool
day of week family
no setter
isPm
→ bool
true
if the date in the evening, false
otherwise.
no setter
isSaturday
→ bool
return true
if the date is Saturday, false
otherwise.
no setter
isSunday
→ bool
return true
if the date is Sunday, false
otherwise.
no setter
isThursday
→ bool
return true
if the date is Thursday, false
otherwise.
no setter
isToday
→ bool
return true
if the date is today, false
otherwise.
no setter
isTomorrow
→ bool
return true
if the date is tomorrow, false
otherwise.
no setter
isTuesday
→ bool
return true
if the date is Tuesday, false
otherwise.
no setter
isWednesday
→ bool
return true
if the date is Wednesday, false
otherwise.
no setter
isYesterday
→ bool
return true
if the date is yesterday, false
otherwise.
no setter
nextDay
→ DateTime
no setter
previousDay
→ DateTime
DateTime get sameDayNextMonth => add(const Duration(days: 7));
no setter
sameDayNextWeek
→ DateTime
no setter
sameDayPreviousWeek
→ DateTime
no setter
Methods
copyWith ({int ? year , int ? month , int ? day , int ? hour , int ? minute , int ? second , int ? millisecond })
→ DateTime
creates new instance of DateTime with the same date
but overrides the values of the given parameters
isSameDay (DateTime date )
→ bool
withoutTime ()
→ DateTime
return new DateTime without the time part
for example => 2020-01-01T12:51:42.325
to => 2020-01-01T00:00:00.000
withTime ({int hour = 0 , int minute = 0 , int second = 0 , int millisecond = 0 , int microsecond = 0 })
→ DateTime