FreeBASIC  0.91.0
time_timeserial.c
Go to the documentation of this file.
1 /* timeserial function */
2 
3 #include "fb.h"
4 
5 /*:::::*/
6 FBCALL double fb_TimeSerial ( int hour, int minute, int second )
7 {
8  double dblHour = 1.0 * (double) hour / 24.0;
9  double dblMinute = 1.0 * minute / (24.0 * 60.0);
10  double dblSecond = 1.0 * second / (24.0 * 60.0 * 60.0);
11  return dblHour + dblMinute + dblSecond;
12 }
13