I made std.time for Phobos, please review my code.

Bernard Helyer b.helyer at gmail.com
Tue Apr 27 05:16:59 PDT 2010


module test;

import std.stdio;
static import std.date;

import time;


void main()
{
    auto ttime = localtime();
    auto dtime = std.date.getUTCtime();
    dtime = std.date.UTCtoLocalTime(dtime);

    writeln(ttime);
    writeln(std.date.toString(dtime));
}

[tmp]$ ./test
2010-04-28 00:14:15,016  # CORRECT  n_n
Tue Apr 27 12:14:15 GMT+0000 2010   # BZZZT, Thanks for playing.




Looking good so far.   :]






More information about the Digitalmars-d-announce mailing list