Adding days to std.datetime.Date
Piotr Szturmaj
bncrbme at jadamspam.pl
Thu Apr 7 12:07:02 PDT 2011
Is it possible to add a particular number of days to a Date?
I have number of days since 1 Jan 2000 and I want to convert it to Date:
int days = read!int; // number of days since 1 Jan 2000
Date x = Date(2000, 1, 1);
x.add!"days"(days);
Unfortunately add() does not support adding days. Will it be possible in
the future or is there another approach?
Thanks
More information about the Digitalmars-d-learn
mailing list