Jump to content

Discordian date: Difference between revisions

m
m (→‎{{header|Ruby}}: different output method that does not require the explicit to_s call)
m (→‎{{header|Pike}}: whitespace)
Line 907:
Pike includes a Discordian calendar.
dates can be converted from any calendar to any other.
<lang Pike>> Calendar.Discordian.now()->format_ext_ymd();
<lang Pike>
> Calendar.Discordian.now()->format_ext_ymd();
Result: "Pungenday, 59 Bureaucracy 3177"
> Calendar.Discordian.Day(Calendar.Day(2011,11,11))->format_ext_ymd();
Line 915 ⟶ 914:
Result: "Setting Orange, 23 The Aftermath 3177"
> Calendar.Day((Calendar.Discordian.Month()+1)->day(1));
Result: Day(Thu 20 Oct 2011)</lang>
</lang>
 
=={{header|PowerBASIC}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.