January 15, 2017 Learn » Re: Convert duration to years? | |||
|---|---|---|---|
| |||
...auto years = currDate.year - birthdate.year;
if(currDate...dlang.org/phobos/std_datetime.html#.SysTime.diffMonths... | |||
January 15, 2017 Learn » Re: Convert duration to years? | |||
|---|---|---|---|
| |||
...import std.datetime;
immutable SysTime now = Clock.currTime();
immutable int years = now.year - yyyy;
return... | |||
January 15, 2017 Learn » Re: Convert duration to years? | |||
|---|---|---|---|
| |||
...uint dd) {
import std.datetime;
SysTime t = Clock...correction += 1;
return (t.year - yyyy - correction);
}
Isn... | |||
January 15, 2017 Learn » Re: Convert duration to years? | |||
|---|---|---|---|
| |||
...1));
return((t2.year - t1.year));
}
void main...uint getAge() {
import std.datetime;
SysTime t1 = SysTime... | |||
January 15, 2017 Learn » Re: Convert duration to years? | |||
|---|---|---|---|
| |||
...datetime; SysTime t1 = SysTime(Date(yyyy, mm, dd)); SysTime t2 = Clock.currTime(); return( (t2.year... | |||
November 20, 2016 General » More technical material for the blog? Merge the newsletter? | |||
|---|---|---|---|
| |||
...blog in the last year on reddit, which...about the massive std.datetime and some of... | |||
September 21, 2016 Issues » [Issue 16517] New: topN performance very poor on certain data sets | |||
|---|---|---|---|
| |||
...with 4 columns: ngram, year, total occurrences, number...std.range; import std.datetime: StopWatch; void main... | |||
August 22, 2016 Learn » Re: Get current date and time with std.datetime | |||
|---|---|---|---|
| |||
...import std.datetime; DateTime dateTime = cast(DateTime)Clock...02s.%s " // date, month, year "[%s:%02s:%02s... | |||
June 22, 2016 General » Re: Phobo's migration | |||
|---|---|---|---|
| |||
...for even a half year of no improvements...are problems in std.datetime sure, and they... | |||
May 18, 2016 GDC » [Bug 224] [ICE] std/datetime.o: in reload_combine_note_use, at postreload.c:1535 | |||
|---|---|---|---|
| |||
...auto dateTime = DateTime();
return format("%s",
dateTime.toISOString...timezone;
}
struct Date
{
short _year;
ubyte _day;
this... | |||
Copyright © 1999-2021 by the D Language Foundation