new DateHelper()
Members
-
getFriendlyDateParts
-
Methods
-
Turns all strings that look like datetimes into moment objects recursively
Name Type Description data -
getFriendlyDuration(duration)
-
Name Type Description duration -
getNow(){moment}
-
-
roundTime(m, inc, direction)
-
Name Type Description mincdirection -
roundTimeDown(m, inc)
-
Name Type Description minc -
roundTimeFrom(m)
-
roundTimeFrom uses the time rounding rules to round a begin datetime
Name Type Description m -
roundTimeTo(m)
-
roundTimeTo uses the time rounding rules to round an end datetime
Name Type Description m -
roundTimeUp(m, inc)
-
Name Type Description minc