1 | <?php |
||
15 | class TimeUtils |
||
16 | { |
||
17 | |||
18 | /** |
||
19 | * @param $numberOfDays |
||
20 | * @return string |
||
21 | * @throws Exception |
||
22 | */ |
||
23 | public static function getYearsFromDays($numberOfDays) |
||
30 | |||
31 | /** |
||
32 | * @param $numberOfMonths |
||
33 | * @return string |
||
34 | */ |
||
35 | public static function getYearsFromMonths($numberOfMonths) |
||
42 | |||
43 | /** |
||
44 | * @param $numberOfYears |
||
45 | * @return string |
||
46 | */ |
||
47 | public static function getYearsFromYears($numberOfYears) |
||
54 | |||
55 | /** |
||
56 | * @param $numberOfDays |
||
57 | * @return string |
||
58 | * @throws Exception |
||
59 | */ |
||
60 | public static function getMonthsFromDays($numberOfDays) |
||
67 | |||
68 | /** |
||
69 | * @param $numberOfMonths |
||
70 | * @return string |
||
71 | */ |
||
72 | public static function getMonthsFromMonths($numberOfMonths) |
||
79 | |||
80 | /** |
||
81 | * @param $numberOfYears |
||
82 | * @return string |
||
83 | */ |
||
84 | public static function getMonthsFromYears($numberOfYears) |
||
91 | |||
92 | /** |
||
93 | * @param $numberOfDays |
||
94 | * @return string |
||
95 | */ |
||
96 | public static function getDaysFromDays($numberOfDays) |
||
103 | |||
104 | /** |
||
105 | * @param $numberOfMonths |
||
106 | * @return string |
||
107 | * @throws Exception |
||
108 | */ |
||
109 | public static function getDaysFromMonths($numberOfMonths) |
||
116 | |||
117 | /** |
||
118 | * @param $numberOfYears |
||
119 | * @return string |
||
120 | * @throws Exception |
||
121 | */ |
||
122 | public static function getDaysFromYears($numberOfYears) |
||
129 | |||
130 | /** |
||
131 | * @return mixed |
||
132 | * @throws Exception |
||
133 | */ |
||
134 | public static function getCurrentDayCountConvention() |
||
152 | |||
153 | /** |
||
154 | * @param $dayCountConvention |
||
155 | * @return bool |
||
156 | */ |
||
157 | public static function isDayCountConventionValid($dayCountConvention) |
||
170 | } |
||
171 | } |
||
172 |