Get Unit of Time
As an alternate to Duration#x()
getters, you can use Duration#get('x')
.
var duration = dayjs.duration
duration.get('hours');
duration.get('minutes');
duration.get('seconds');
duration.get('milliseconds');
As an alternate to Duration#x()
getters, you can use Duration#get('x')
.
var duration = dayjs.duration
duration.get('hours');
duration.get('minutes');
duration.get('seconds');
duration.get('milliseconds');