|
Blender
V3.3
|
Go to the source code of this file.
Macros | |
Time Constants Definitions | |
| #define | SECONDS_IN_MILLISECONDS 0.001 |
| #define | SECONDS_IN_MINUTE 60.0 |
| #define | MINUTES_IN_HOUR 60.0 |
| #define | HOURS_IN_DAY 24.0 |
| #define | MINUTES_IN_DAY (MINUTES_IN_HOUR * HOURS_IN_DAY) |
| #define | SECONDS_IN_DAY (MINUTES_IN_DAY * SECONDS_IN_MINUTE) |
| #define | SECONDS_IN_HOUR (MINUTES_IN_HOUR * SECONDS_IN_MINUTE) |
Functions | |
Time API | |
| void | BLI_math_time_seconds_decompose (double seconds, double *r_days, double *r_hours, double *r_minutes, double *r_seconds, double *r_milliseconds) |
| #define HOURS_IN_DAY 24.0 |
Definition at line 21 of file BLI_math_time.h.
| #define MINUTES_IN_DAY (MINUTES_IN_HOUR * HOURS_IN_DAY) |
Definition at line 23 of file BLI_math_time.h.
| #define MINUTES_IN_HOUR 60.0 |
Definition at line 20 of file BLI_math_time.h.
| #define SECONDS_IN_DAY (MINUTES_IN_DAY * SECONDS_IN_MINUTE) |
Definition at line 24 of file BLI_math_time.h.
| #define SECONDS_IN_HOUR (MINUTES_IN_HOUR * SECONDS_IN_MINUTE) |
Definition at line 25 of file BLI_math_time.h.
| #define SECONDS_IN_MILLISECONDS 0.001 |
Definition at line 18 of file BLI_math_time.h.
| #define SECONDS_IN_MINUTE 60.0 |
Definition at line 19 of file BLI_math_time.h.
| void BLI_math_time_seconds_decompose | ( | double | seconds, |
| double * | r_days, | ||
| double * | r_hours, | ||
| double * | r_minutes, | ||
| double * | r_seconds, | ||
| double * | r_milliseconds | ||
| ) |
Explode given time value expressed in seconds, into a set of days, hours, minutes, seconds and/or milliseconds (depending on which return parameters are not NULL).
seconds=90.0 and do not pass r_seconds and r_milliseconds, r_minutes will be set to 1.5. Definition at line 10 of file math_time.c.
References BLI_assert, NULL, SECONDS_IN_DAY, SECONDS_IN_HOUR, SECONDS_IN_MILLISECONDS, and SECONDS_IN_MINUTE.
Referenced by file_read_reports_finalize(), and TEST().