Discordian date: Difference between revisions
m
→{{header|AppleScript}}: Tidied opening block comment.
Not a robot (talk | contribs) (Add MAD) |
m (→{{header|AppleScript}}: Tidied opening block comment.) |
||
Line 699:
<lang applescript>on gregorianToDiscordian(inputDate) -- Input: AppleScript date object.
(*
Discordian
The first day of a Discordian year is also that of its first week and first season.
In leap years, an extra day called "St. Tib's Day", is inserted between days 59 and 60.
It's considered to be outside the calendar, so the day after it is Setting Orange, Chaos 60,
as its input and is only good for AD Gregorian dates. Since the Discordian calendar's an
American invention, the output here's in the US style: "Weekday, Season day, year".
*)
-- Calculate the input date's day-of-year number.
copy inputDate to startOfYear
Line 741 ⟶ 742:
end gregorianToDiscordian
set
set
set discordianDate to gregorianToDiscordian(ASDate)
return {Gregorian:gregorianDate, Discordian:discordianDate}</lang>
{{output}}
<
=={{header|AWK}}==
|