Re: DateTime formatting

2017-12-20 Thread bauss via Digitalmars-d-learn
On Wednesday, 20 December 2017 at 22:38:06 UTC, Jonathan M Davis wrote: On Wednesday, December 20, 2017 21:36:00 bauss via Digitalmars-d-learn wrote: On Wednesday, 20 December 2017 at 18:50:37 UTC, Jonathan M Davis wrote: > On Wednesday, December 20, 2017 14:30:55 bauss via > >

Re: DateTime formatting

2017-12-20 Thread codephantom via Digitalmars-d-learn
On Wednesday, 20 December 2017 at 14:30:55 UTC, bauss wrote: I can't seem to find anything in Phobos that allows you to specify custom formats for dates. sometimes it's just better to take control of things yourself ;-) https://forum.dlang.org/post/dmxdtciktpggcxybd...@forum.dlang.org

Re: DateTime formatting

2017-12-20 Thread Jonathan M Davis via Digitalmars-d-learn
On Wednesday, December 20, 2017 21:36:00 bauss via Digitalmars-d-learn wrote: > On Wednesday, 20 December 2017 at 18:50:37 UTC, Jonathan M Davis > > wrote: > > On Wednesday, December 20, 2017 14:30:55 bauss via > > > > Digitalmars-d-learn wrote: > >> I can't seem to find anything in Phobos that

Re: DateTime formatting

2017-12-20 Thread Jonathan M Davis via Digitalmars-d-learn
On Wednesday, December 20, 2017 14:14:32 Steven Schveighoffer via Digitalmars-d-learn wrote: > On 12/20/17 1:50 PM, Jonathan M Davis wrote: > > This was posted about recently in the Announce group though: > > > > http://code.dlang.org/packages/datefmt > > Hm... a search for "date" on

Re: DateTime formatting

2017-12-20 Thread bauss via Digitalmars-d-learn
On Wednesday, 20 December 2017 at 18:50:37 UTC, Jonathan M Davis wrote: On Wednesday, December 20, 2017 14:30:55 bauss via Digitalmars-d-learn wrote: I can't seem to find anything in Phobos that allows you to specify custom formats for dates. Am I on my own or is there already such

Re: DateTime formatting

2017-12-20 Thread Steven Schveighoffer via Digitalmars-d-learn
On 12/20/17 1:50 PM, Jonathan M Davis wrote: This was posted about recently in the Announce group though: http://code.dlang.org/packages/datefmt Hm... a search for "date" on code.dlang.org does not show this. Why not? http://code.dlang.org/search?q=date -Steve

Re: DateTime formatting

2017-12-20 Thread Jonathan M Davis via Digitalmars-d-learn
On Wednesday, December 20, 2017 14:30:55 bauss via Digitalmars-d-learn wrote: > I can't seem to find anything in Phobos that allows you to > specify custom formats for dates. > > Am I on my own or is there already such functionality? > > I'm interested in a formatter with the possibility to

Re: DateTime formatting

2017-12-20 Thread Steven Schveighoffer via Digitalmars-d-learn
On 12/20/17 9:30 AM, bauss wrote: I can't seem to find anything in Phobos that allows you to specify custom formats for dates. Am I on my own or is there already such functionality? You are on your own. Some of the pieces are available, but having support for everything you may want to do

DateTime formatting

2017-12-20 Thread bauss via Digitalmars-d-learn
I can't seem to find anything in Phobos that allows you to specify custom formats for dates. Am I on my own or is there already such functionality? I'm interested in a formatter with the possibility to output ex.: December 20th, 2017 10:00 AM All I could find was toSimpleString(), but it