WeBWorK Main Forum

How to do time interval calculations?

How to do time interval calculations?

by Gabor Lukacs -
Number of replies: 0

I am looking for functions similar to Time::Interval. I would like to be able to calculate the number of days between two dates, and vice versa, get a date that is a given number of days ahead from a given that.

I was wondering if this is already supported by WeBWork, and if not, whether there is a simple way to implement it with the existing tools.