minutesToHours()
Returns the number of hours from a given number of minutes.
Usage
import { minutesToHours } from 'easy-dates';
minutesToHours(minutes)
Prop types
prop | type | required | default |
---|---|---|---|
minutes | number | yes | null |
Examples
minutesToHours(30); // 0.5
minutesToHours(60); // 1
minutesToHours("some string"); // throw error