quartersToYears()
Returns the number of years equal to the given number of quarters. There are 3 months in a quarter.
Usage
import { quartersToYears } from 'easy-dates';
quartersToYears(quarters);
Prop types
prop | type | required | default |
---|---|---|---|
quarters | number | yes | null |
Examples
quartersToYears(4); // 1
quartersToYears(2); // 0.5
quartersToYears('6'); // Error