Merge pull request #2227 from jmdavis/datetime

More ref return fixes in std.datetime now that the compiler allows them.
Fix deprecation warnings in std.datetime.