Search

May 10, 2017
Learn »
...of \"year\", \"month\", \"week\", \"day\", \"hour\", \"minute\" or \"second\"");
    }
}

SysTime startOf(string unit)(SysTime st...
May 05, 2017
Learn »
...of year, month, week, day, hour, minute and second. Works for DateTime and SysTime. Not...
February 10, 2017
Learn »
...comment of SysTime. So, that should be improved. However, the documentation for SysTime.year does...
January 15, 2017
Learn »
...auto years = currDate.year - birthdate.year;
    if(currDate...phobos/std_datetime.html#.SysTime.diffMonths

However, I...
January 15, 2017
Learn »
...std.datetime;

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

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

Isn...
January 15, 2017
Learn »
...SysTime(Date(2000, 12, 31));
  SysTime t2 = SysTime(Date(2001, 1, 1));
  return((t2.year...
January 15, 2017
Learn »
...datetime;
  SysTime t1 = SysTime(Date(yyyy, mm, dd));
  SysTime t2 = Clock.currTime();
  return( (t2.year...
May 18, 2016
GDC »
...auto janOffset = SysTime(Date()).stdTime - SysTime(Date()).stdTime...timezone;
}

struct Date
{
    short _year;
    ubyte _day;

    this...
March 25, 2016
Genel »
...string(date.year);
               break;

           default:
               ret ~= ch;
       }
       i++;
   }

   return ret;
}
unittest
{
   SysTime date = SysTime(Date...
1 2 3
Next ›   Last »