Differences between two dates (in days...)

Mil58 peter_pinkness at yahoo.fr
Thu Oct 24 12:28:53 UTC 2019


On Thursday, 24 October 2019 at 12:01:21 UTC, Adam D. Ruppe wrote:
> On Thursday, 24 October 2019 at 11:50:04 UTC, Mil58 wrote:
>> [...]
>
> Try this:
>
> Duration diff = cast(DateTime) auj - deb;
> writeln("Diff : ", diff.total!"days");
>
> [...]

Awsome ! Thank you for your quick reply...
Both lines work perfectly  :-)


More information about the Digitalmars-d-learn mailing list