DateTime custom string format

Robert Schadek via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jun 3 10:39:14 PDT 2014


On 06/03/2014 07:12 PM, Jonathan M Davis via Digitalmars-d-learn wrote:
> On Tue, 03 Jun 2014 17:07:02 +0200
> Robert Schadek via Digitalmars-d-learn
> <digitalmars-d-learn at puremagic.com> wrote:
>
>> Is there a function in phobos that lets me do something like
>> DateTime.format("MM:DD:YYYY ....") with a DateTime instance?
> Not currently. It's on my todo list. I intend to get back to it after I've
> finished with splitting std.datetime (which I should get to fairly soon but
> have been doing some cleanup in std.datetime first), but I don't know when it
> will actually be ready. So, for now, you'd have to use std.string.format and
> the getters on DateTime.
>
> - Jonathan M Davis
Ok, I had people asking me for this because of my std.logger default
output format.

Do you accept PRs for that?


More information about the Digitalmars-d-learn mailing list