Re: print yyyy-mm-dd

2014-11-24 Thread Suliman via Digitalmars-d-learn
Is there any way to set separator? For example I want use '/' or ':'?

Re: print yyyy-mm-dd

2014-11-24 Thread Suliman via Digitalmars-d-learn
And could anybody explain me how the cast is work. How to understand which types to which may be casted?

Re: print yyyy-mm-dd

2014-11-24 Thread Jonathan M Davis via Digitalmars-d-learn
On Monday, November 24, 2014 10:33:16 Suliman via Digitalmars-d-learn wrote: Is there any way to set separator? For example I want use '/' or ':'? No. toISOString and toISOExtString support the ISO and Extended ISO formats from the ISO standard, and std.datetime does not currently support

Re: print yyyy-mm-dd

2014-11-24 Thread Jonathan M Davis via Digitalmars-d-learn
On Monday, November 24, 2014 10:38:55 Suliman via Digitalmars-d-learn wrote: And could anybody explain me how the cast is work. How to understand which types to which may be casted? Look at the documentation for opCast. That's how the casting is done. But what it comes down to is SysTime -

print yyyy-mm-dd

2014-11-20 Thread Suliman via Digitalmars-d-learn
I can't understand how to get date in format -MM-dd from Clock.currTime auto time = Clock.currTime; And what next? Could anybody give any examples?

Re: print yyyy-mm-dd

2014-11-20 Thread MrSmith via Digitalmars-d-learn
On Thursday, 20 November 2014 at 13:50:49 UTC, Suliman wrote: I can't understand how to get date in format -MM-dd from Clock.currTime auto time = Clock.currTime; And what next? Could anybody give any examples? http://dpaste.dzfl.pl/73c0438f9d1e currTime returns SysTime; You can then

Re: print yyyy-mm-dd

2014-11-20 Thread uri via Digitalmars-d-learn
On Thursday, 20 November 2014 at 20:38:08 UTC, MrSmith wrote: On Thursday, 20 November 2014 at 13:50:49 UTC, Suliman wrote: I can't understand how to get date in format -MM-dd from Clock.currTime auto time = Clock.currTime; And what next? Could anybody give any examples?