Fix deprecation warnings in std.datetime.

With the deprecation of the individual unit getters on `Duration`, these lines need to be changed in 
std.datetime to get rid of the deprecation warnings.

https://issues.dlang.org/show_bug.cgi?id=12846