Search

January 15, 2017
Learn »
...auto years = currDate.year - birthdate.year;
    if(currDate...dlang.org/phobos/std_datetime.html#.SysTime.diffMonths...
January 15, 2017
Learn »
...import std.datetime;

    immutable SysTime now = Clock.currTime();
    immutable int years = now.year - yyyy;

    return...
January 15, 2017
Learn »
...uint dd) {
  import std.datetime;
  SysTime t = Clock...correction += 1;
  return (t.year - yyyy - correction);
}

Isn...
January 15, 2017
Learn »
...1));
  return((t2.year - t1.year));
}

void main...uint getAge() {
  import std.datetime;
  SysTime t1 = SysTime...
January 15, 2017
Learn »
...datetime;
  SysTime t1 = SysTime(Date(yyyy, mm, dd));
  SysTime t2 = Clock.currTime();
  return( (t2.year...
November 20, 2016
General »
...blog in the last year on reddit, which...about the massive std.datetime and some of...
September 21, 2016
Issues »
...with 4 columns: ngram, year, total occurrences, number...std.range;
import std.datetime: StopWatch;

void main...
August 22, 2016
Learn »
...import std.datetime;
		
		DateTime dateTime = cast(DateTime)Clock...02s.%s " // date, month, year
				"[%s:%02s:%02s...
June 22, 2016
General »
...for even a half year of no improvements...are problems in std.datetime sure, and they...
May 18, 2016
GDC »
...auto dateTime = DateTime();
            return format("%s",
                          dateTime.toISOString...timezone;
}

struct Date
{
    short _year;
    ubyte _day;

    this...
1 2 3 4 5 6 7
Next ›   Last »