date_week_span(date1,date2)
Jump to navigation
Jump to search
Description
Gets the span between the two date-time values in weeks and returns the result with the remainder as a fraction, for instance 1.5 for 1 and 1/2 weeks.
Parameters
Parameter | Data Type | Description |
---|---|---|
date1 | time_t | the first date-time value |
date2 | time_t | the second date-time value |
Return Values
double: Returns the span in weeks between the two date-time values.
Example Call
// demonstrates getting the span in weeks between today and January 1st 2001
var span;
span = date_week_span(date_create_date(2001, 1, 1), date_current_date());