Using dates to get days count
Joel
joelcnz at gmail.com
Fri Sep 29 06:52:01 UTC 2017
On Friday, 29 September 2017 at 06:32:19 UTC, rikki cattermole
wrote:
> On 29/09/2017 7:29 AM, Joel wrote:
>> How do I count the days between to dates?
>
> https://dlang.org/phobos/std_datetime_date.html#.Date.opBinary.2
> https://dlang.org/phobos/core_time.html#.Duration.total
Thanks rikki. I did know the opBinary thing. I was actually using
a version where I used the string returned from the date1 -
date2, (eg. I pretty much times the weeks by 7 and added the left
over days).
More information about the Digitalmars-d-learn
mailing list