Class: DateHelper

DateHelper

new DateHelper()

Members

getFriendlyDateParts

Methods

privatefixDates(data){*}

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
m
inc
direction

roundTimeDown(m, inc)

Name Type Description
m
inc

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
m
inc