Day of the week: Difference between revisions

Content added Content deleted
({{omit from|PARI/GP|No standard date handling library}})
Line 354:
 
=={{header|D}}==
<lang d>import std.stdio, std.date, std.conv;
I'm sure this can be done better. If anyone wants to take the time, please improve it.
<lang d>import std.date;
import std.stdio;
void main() {
for (longint year = 2008; year <= 2121; year++)
if (0 == WeekDayweekDay(parse("December 25, " ~std. to!string.toString(year))))
writefln("Christmas comes on a sunday in %d", year);
}</lang>
 
 
=={{header|Delphi}}==