Get current date and time with std.datetime

Jonathan M Davis jmdavisProg at gmx.com
Thu Oct 6 23:31:26 PDT 2011


On Friday, October 07, 2011 08:23:10 Jacob Carlborg wrote:
> On 2011-10-07 08:15, Jonathan M Davis wrote:
> > On Friday, October 07, 2011 19:08:33 Joel Christensen wrote:
> >> Hi,
> >> 
> >> I have a program that uses the old time stuff before the module
> >> std.datetime. I have a DateTime object, but I can't seem to set its
> >> properties to the current time.
> >> 
> >> Some thing like:
> >> DateTime dateTime;
> >> dateTime = getCurrentDateTime();
> > 
> > http://d-programming-language.org/intro-to-datetime.html
> 
> May I suggest that you put an example on top of that article that gets
> the current date and time.

It's already in the documentation at the top of the module. What I need to do 
is put a link to the article in that documetantion.

- Jonathan M Davis


More information about the Digitalmars-d-learn mailing list