File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -170,15 +170,15 @@ class datetime_interval {
170170 if constexpr (DT == DateTimeDifferenceType::FractionalSeconds) {
171171 /* difference in fractional seconds */
172172 const double big = static_cast <double >(seconds::max_in_day * m_days);
173- return RT (m_sign * (big + to_fractional_seconds (S (m_secs))));
173+ return RT (m_sign * (big + to_fractional_seconds (S (m_secs)). seconds () ));
174174 } else if constexpr (DT == DateTimeDifferenceType::FractionalDays) {
175175 /* difference in fractional days */
176176 const double big = static_cast <double >(m_days);
177- return RT (m_sign * (big + to_fractional_days (S (m_secs))));
177+ return RT (m_sign * (big + to_fractional_days (S (m_secs)). days () ));
178178 } else {
179179 /* difference in fractional years */
180180 const double big = static_cast <double >(m_days);
181- return RT (m_sign * (big + to_fractional_days (S (m_secs))) /
181+ return RT (m_sign * (big + to_fractional_days (S (m_secs)). days () ) /
182182 DAYS_IN_JULIAN_YEAR);
183183 }
184184 }
You can’t perform that action at this time.
0 commit comments