Code covered by the BSD License  

Highlights from
Tolkiencal

4.0

4.0 | 4 ratings Rate this file 0 Downloads (last 30 days) File Size: 3.02 KB File ID: #18044

Tolkiencal

by Giuseppe Cardillo

 

17 Dec 2007 (Updated 23 Dec 2009)

Convert a date into the Shire calendar

| Watch this File

File Information
Description

TOLKIENCAL is my personal tribute to my favourite writer: J.R.R. Tolkien. The calendar used by the Hobbits of the Shire divided the year into twelve months which, unlike the irregular months of Roman and modern Europe, were of equal length: every month in the Hobbit year had exactly thirty days. This totals only 360 days, so the left-over five or six additional days in each year were invested in a pair of festivals, one at each solstice.
In European calendars a given date, like January the first, falls on a different day of the week every year — sometimes it is a Monday, sometimes a Tuesday, sometimes another day. The Hobbits prevented this disorder.

You can find many other informations on:
http://www.advancedmcode.org/tolkiencal.html

You can visit my homepage http://home.tele2.it/cardillo
My profile on XING http://www.xing.com/go/invita/13675097
My profile on LinkedIN http://it.linkedin.com/in/giuseppecardillo

MATLAB release MATLAB 7.5 (R2007b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (9)
17 Dec 2007 John D'Errico

I can't imagine what purpose someone might find for this, ..., but it strikes my sense of whimsy.

My endless quest for perfection (and mlint) points out there is an unterminated line with no semi-colon. But well, I don't know for sure that hobbits use semi-colons anyway. 8-)

18 Dec 2007 Giuseppe Cardillo

Five star from John D'Errico? I'm very honored! Thank you very much! I agree with your your comment on perfection (Tolkien was so lover of perfection), so I have uploaded the file. Thank you again.

19 Dec 2007 B. Roossien

Although it is completely useless, as a Tolkien fan, I love it!

However, I found an error when trying to use the 22nd of June as date (year doesn't matter). All other days seems to work:

> tolkiencal('22/06/2007')
??? Subscript indices must either be real positive integers or logicals.

Error in ==> tolkiencal at 113
        disp([days{wd(c)} ' ' sd{abs(m(c))} ' ' num2str(year)])

I'm sure you can fix that, so you get a 5-star rating from me as well :-)

19 Dec 2007 Giuseppe Cardillo

You have right. I have fixed this bug and uploaded the file. The function erased the wrong day in not leap years (185 instead of 184). Now it works properly. Thank a lot!

19 Dec 2007 Joseph Hollmann

We don't date much, do we?

It's a fun piece of code. I have no doubt that Tolken discusses this calendar in detail, but where? I guess I'm asking for a Hobbit Calendar reference...

sigh

19 Dec 2007 Urs (us) Schwarz

i see double standards creeping up on the FEX... it worries and bothers me
us

20 Dec 2007 John D'Errico

Urs, this is probably completely useless as a computational tool. But its really an homage to Tolkien, for those who love those books. As such, it earns my respect. Its also well enough written, with interesting documentation. I think that many of us love to find Easter eggs in Matlab - little surprises that do not really belong, but still make us smile when we find them. In a sense, this is much the same. While it does not fill any real purpose in Matlab, I believe this tool deserves its praise.

By the way, I'm not suggesting that the FEX is a place for any trash that might be put up there as a joke. But this submission is not that.

Joseph is very correct, a reference would be appropriate.

21 Dec 2007 Giuseppe Cardillo

John hit the mark about the scope of this function. To please my namesake Joseph, the first reference is, of course, Lord of the Rings Appendix D. Anyway, if you search on Google "Shire Calendar" you will find many references.
In particular, you can find a link in Wikipedia (http://en.wikipedia.org/wiki/Shire_Calendar).
Another useful link is http://shire-reckoning.com/calendar.html.
In the next days, I'll add some lines of comment in the file to explain better several choices that I took. Thank you all.

22 Dec 2007 A FEX Observer

I agree with Urs. This submission does not provide anything valuable or useful (in terms of contents or coding) to the Matlab community. Yet it is rated amazingly high by a few of those people, who are usually very quick in annihilating such surrealistic contributions. The fact that a guru(?) has an emotional bond with the idea behind a program certainly cannot be sufficient to give out a 'reward'.
Walter.

Please login to add a comment or rating.
Updates
18 Dec 2007

File edited in agree with John D'Errico's comments

19 Dec 2007

Bug '22/06/yyyy' fixed

21 Dec 2007

More comments and references added

12 Nov 2008

Changes in help section

03 Sep 2009

The description was shorted and a link to advancedmcode was added

23 Dec 2009

Changes in description

Tag Activity for this File
Tag Applied By Date/Time
clock Giuseppe Cardillo 22 Oct 2008 09:39:49
fun Giuseppe Cardillo 22 Oct 2008 09:39:49
tolkien shire calendar Giuseppe Cardillo 22 Oct 2008 09:39:49
clock Cristina McIntire 12 Nov 2008 14:05:15
calendar Cristina McIntire 12 Nov 2008 14:05:15

Contact us at files@mathworks.com