DateExtension extension
Methods
-
beautifyTime({bool bUTC = false, String strYear = '{0} year', String strMonth = '{0} month', String strDay = '{0} day', String strHour = '{0} hour', String strMinute = '{0} minute', String strJustNow = 'Just now', String strSuffix = 'ago', bool bAddPlural = true, bool bShowTwoFields = false})
→ String
-
-
diffDays(DateTime date, {bool bUTC = false})
→ int
-
-
diffHours(DateTime date, {bool bUTC = false})
→ int
-
-
diffMinutes(DateTime date, {bool bUTC = false})
→ int
-
-
diffSeconds(DateTime date, {bool bUTC = false})
→ int
-
-
formatString({String format = 'MM.dd yyyy', String locale = 'en'})
→ String
-
-
isCompare(DateTime date, {bool bUTC = false})
→ bool
-