Recall that std.date used the following to retrieve a month in integer form (0
.. 11):
auto Now = std.date.getUTCtime();
writeln(std.date.monthFromTime(Now));
Using std.datetime, the following yields the abbreviated month name:
auto Now = Clock.currTime();
writefln("%s", Now.month);
On Monday 18 July 2011 16:01:06 dsmith wrote:
> Recall that std.date used the following to retrieve a month in integer form
> (0 .. 11):
>
> auto Now = std.date.getUTCtime();
> writeln(std.date.monthFromTime(Now));
>
> Using std.datetime, the following yields the abbreviated month name:
>
>
Thank you, it works as planned, now as:
int mo = Now.month; // --> 7
== Repost the article of Jonathan M Davis (jmdavisp...@gmx.com)
== Posted at 2011/07/18 12:14 to digitalmars.D.learn
On�Monday�18�July�2011�16:01:06�dsmith�wrote:
>�Recall�that�std.date�used�the�following�to�retrieve�a�month�in