DateTimeExtension extension

on

Properties

localizedWeekDay String
Gets the localized week.
no setter
shortLocalizedWeekDay String
Gets the localized week.
no setter
weekNumber int
Week number according to ISO 8601.
no setter

Methods

format(String format) String
Format and output the date.
isThisHour([DateTime? dateTime]) bool
True if the specified time or the current time is the same hour.
isThisMimute([DateTime? dateTime]) bool
True if the specified time or the current time is the same minute.
isThisMonth([DateTime? dateTime]) bool
True if the specified time or the current time is the same month.
isThisSecond([DateTime? dateTime]) bool
True if the specified time or the current time is the same second.
isThisYear([DateTime? dateTime]) bool
True if the specified time or the current time is the same year.
isToday([DateTime? dateTime]) bool
True if the specified time or the current time is the same day.