equal
deleted
inserted
replaced
234 |
234 |
235 |
235 |
236 |
236 |
237 |
237 |
238 /* NOTE: The following function was turned into a macro, so it could be used to initialize the initial value of TOD (TIME_OF_DAY) variables */ |
238 /* NOTE: The following function was turned into a macro, so it could be used to initialize the initial value of TOD (TIME_OF_DAY) variables */ |
239 /* NOTE: many (but not all) of the same comments made regarding __time_to_timespec() are also valid here, so go and read those comments too! |
239 /* NOTE: many (but not all) of the same comments made regarding __time_to_timespec() are also valid here, so go and read those comments too!*/ |
240 /* |
240 /* |
241 static inline IEC_TIMESPEC __tod_to_timespec(double seconds, double minutes, double hours) { |
241 static inline IEC_TIMESPEC __tod_to_timespec(double seconds, double minutes, double hours) { |
242 IEC_TIMESPEC ts; |
242 IEC_TIMESPEC ts; |
243 |
243 |
244 long double total_sec = (hours*60 + minutes)*60 + seconds; |
244 long double total_sec = (hours*60 + minutes)*60 + seconds; |