Discordian date: Difference between revisions

m
C# turned it into an extension method
(Added C#)
m (C# turned it into an extension method)
Line 910:
static readonly string[] holidays = { "Chaoflux", "Discoflux", "Confuflux", "Bureflux", "Afflux" };
public static string Discordian(this DateTime date) {
string yold = $" in the YOLD {date.Year + 1166}.";
int dayOfYear = date.DayOfYear;
Line 947:
(26, 9, 2018),
(24, 10, 2019),
(8, 12, 2020),
(31, 12, 2020)
})
{
Console.WriteLine($"{day:00}-{month:00}-{year:00} = {Discordian(new DateTime(year, month, day).Discordian()}");
}
}
Line 972 ⟶ 973:
26-09-2018 = Prickle-Prickle, day 50 of Bureaucracy in the YOLD 3184. Celebrate Bureflux!
24-10-2019 = Boomtime, day 5 of The Aftermath in the YOLD 3185. Celebrate Maladay!
08-12-2020 = Boomtime, day 50 of The Aftermath in the YOLD 3186. Celebrate Afflux!</pre>
31-12-2020 = Setting Orange, day 73 of The Aftermath in the YOLD 3186.</pre>
 
=={{header|Clojure}}==
196

edits