Skip to content
This repository was archived by the owner on Aug 9, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions include/years.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,31 @@ double years_to_minutes(double years);
double years_to_seconds(double years);
double years_to_milliseconds(double years);
// DEFINED FUNCTIONS FOR CONVERSION OF YEARS TO MONTHS
double years_to_(double years) {
double years_to_months(double years) {
return years * 12;
}
// DEFINED FUNCTIONS FOR CONVERSION OF YEARS TO WEEKS
double years_to_(double years) {
double years_to_weeks(double years) {
return years * 52.1429;
}
// DEFINED FUNCTIONS FOR CONVERSION OF YEARS TO DAYS
double years_to_(double years) {
double years_to_days(double years) {
return years * 365;
}
// DEFINED FUNCTIONS FOR CONVERSION OF YEARS TO HOURS
double years_to_(double years) {
double years_to_hours(double years) {
return years * 8760;
}
// DEFINED FUNCTIONS FOR CONVERSION OF YEARS TO MINUTES
double years_to_(double years) {
double years_to_minutes(double years) {
return years * 525600;
}
// DEFINED FUNCTIONS FOR CONVERSION OF YEARS TO SECONDS
double years_to_(double years) {
double years_to_seconds(double years) {
return years * 31556952;
}
// DEFINED FUNCTIONS FOR CONVERSION OF YEARS TO MILLISECONDS
double years_to_(double years) {
double years_to_milliseconds(double years) {
return years * 31556926000;
}
#endif