| Contents |
#include <codecogs/units/time/time.h>
using namespace Units::Time;
| double | time (int Hours, int Minutes, int Seconds)[inline] Calculates the time fraction from the parameters hours, minutes and seconds.
Excel: TIME | |
| Real | cc_time (Integer Hours, Integer Minutes, Integer Seconds) This function is available as a Microsoft Excel add-in. |
| doubletime( | int | Hours | |
| int | Minutes | ||
| int | Seconds | )[inline] |
double breakfast =time(6,15,0); // ~0.2604 double midday =time(12,0,0); // 0.5 double lunchtime =time(13,30,0); // ~0.5625 double bedtime =time(22,40,0); // ~0.9444
| Hours | is usually any integer number between 0 (12am) and 23 (11pm), though values outside of this range will esculate into forming a positive (or negative) number of elapsed days. |
| Minutes | is usually any integer between 0 and 59, where once again values outside of this range will esculate into forming additional hours. |
| Seconds | is usually any integer between 0 and 59, with values outside of this range esculating upto to form whole minutes. |