Skip to content
Snippets Groups Projects
Commit 3efa05ac authored by Florian's avatar Florian
Browse files

added wrapper function divideTimedelta.

parent 9acd9e79
No related branches found
No related tags found
No related merge requests found
......@@ -58,6 +58,7 @@ struct _timedelta
struct _divisionquotienttimespan
{
int64_t quotient; ///< Quotient of two timedeltas.
int64_t remainder_days; ///< Remainder in days of two timedeltas division.
int64_t remainder_in_ms; ///< Remainder in milli seconds of two timedeltas division.
};
......@@ -85,6 +86,10 @@ timeDeltaToJulianDelta(struct _timedelta *td, struct _datetime *dt, struct _juli
struct _timedelta*
julianDeltaToTimeDelta(struct _juliandelta* jd, struct _datetime *dt, struct _timedelta* td_return);
struct _divisionquotienttimespan*
divideTimeDelta(struct _timedelta* dividend, struct _timedelta* divisor,
struct _datetime* base_dt, struct _divisionquotienttimespan* quo_ret);
struct _divisionquotienttimespan*
divideTimeDeltaInSeconds(struct _timedelta* dividend, struct _timedelta* divisor, struct _datetime* base_dt,
struct _divisionquotienttimespan* quo_ret);
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment