Calendars Around The World

The other hat I wear around these parts besides Printing is Calendar Systems (just don't ask how I got interested, a long story...), and I've found a bit of time to put some more work into them, as well as the plasma Calendar and Clock widgets.

I've posted previously about giving the plasma Calendar and Clock widgets the ability to set what calendar system to display.  This is now in trunk for people to play with, so I thought it was time to add to our already supported list of calendar systems that people can display on their desktop.

My first target was the Indian National calendar, the official government calender for India, albeit one apparently not widely used (the Gregorian is the common civil calendar).  While the various Indian religious calendars might be more useful in daily life, unfortunately these require various astronomical calculations that we don't yet support, or local observations that we may not be able to support.

The Indian National calculations on the other hand are fairly straight forward as it is very closly linked to the Gregorian calendar, with there being a fixed 78 year difference in the year numbers, a fixed 80 day difference between the start of the respective years, and synchronised leap years.  One interesting feature is that the first year in the calendar is Year 0, which required some changes to the base class to support as none of our current calenders have one.

The big problem though was that our exisiting Gregorian calendar class copies QDate in only actually doing Gregorian calculations after 15 October 1582, before then it uses the Julian calendar calculations.  Any earlier dates in the Indian calendar would be calculated wrong if I used that, so I first had to implement a 'pure' version of the Gregorian calendar to use as a basis.  And while I was at it I thought it would be remiss of me not to do a 'pure' Julian calendar, which may be useful for members of some Orthodox Christian churches.

The end result you can see below is full support for the Indian National calendar, currently from 0000-01-01 through to 9999-12-30.

Indian National 20 October

Indian National earlist date

Indian National latest date

Yes, I realise that the week numbers are wrong in the year 0, that's an existing bug in our ISO week number code for all years < 1 that I have to fix.

Could I ask all our friends in India to have a play with it and let me know if there are any glaring errors?  Just update trunk kdelibs and kdebase then run "plasmoidviewer calendar" or "plasmoidviewer digital-clock", go into the widget settings and change the Calendar to Indian National.  It passes the tests I have here, but they are not yet comprehensive.  

The other thing I need to ask is to confirm the month and weekday name transliterations I have used from the net are 'correct' (i.e. current best practice), and that the short forms I have invented are OK and not something rude :-)  Is there a standard set of 3 char abbreviations I should be using?

The month names I've used from Wikipedia along with my made-up abbreviations are:

  1. Chaitra  -  Cha
  2. Vaishākh  -  Vai
  3. Jyaishtha  -  Jya
  4. Āshādha  -  Āsh
  5. Shrāvana  -  Shr
  6. Bhādrapad  -  Bhā
  7. Āshwin  -  Āsw
  8. Kārtik  -  Kār
  9. Agrahayana  -  Agr
  10. Paush  -  Pau
  11. Māgh  -  Māg
  12. Phālgun  -  Phā

The weekday names I've used from somewhere are (starting from Monday):

  1. Somavãra  -  Som
  2. Mañgalvã  -  Mañ
  3. Budhavãra  -  Bud
  4. Guruvãra  -  Gur
  5. Sukravãra  -  Suk
  6. Sanivãra  -  San
  7. Raviãra  -  Rav

TIA!

So our supported list of calendars is now:

  • Gregorian
  • Hebrew
  • Hijri
  • Indian National
  • Jalali
  • Julian

Note that the 'pure' Gregorian won't yet be offered as a choice to users as I'm concerned about the possible confusion from seeing Gregorian twice in the list, and with inconsistencies arising with anything using the existing Gregorian or QDate stuff.  However, it is there for apps to use if they need to.

Now, I'm a strong believer in our translation and localisation being one of our greatest strengths and selling points, not only something that could see us 'winning' in markets that the big players just can't be bothered with, but also helping bring the benfits of computers and the net to people who might not otherwise be able to access them.  Providing as many local calendar systems as possible is part of that.  So how do we compare at the moment to the competition?

OSX 10.5 lets you choose any of the following:

  • Gregorian
  • Buddhist
  • Hebrew
  • Islamic
  • Islamic, Civil
  • Japanese

As the only OS to currently support the Buddist calendar, I suspect Steve Jobs was behind that feature :-)

Windows Vista and 7 has a real brain-dead scheme when it comes to Calendar Systems.  Want an English desktop and the Hijri or Hebrew calendar?  Sorry, no can do!  You have to choose Arabic or Hebrew as your language, then it lets you choose which calendar system to use.  It restricts what calendar(s) you are allowed to choose from based on first your language and second your country, which while good for choosing default values seems seriously restrictive for no good reason.  And their desktop 'Gadget' will only display the global calendar.  Fail.  Anyway, according to MSDN the supported calendars are:

  • Gregorian (6 different localised varieties)
  • Japanese Emperor Era
  • Taiwan calendar
  • Korean Tangun Era
  • Hijri (Arabic Lunar)
  • Thai
  • Hebrew (Lunar)
  • Um Al Qura (Arabic lunar) calendar

Actually, I'd better be careful with throwing the insults Microsofts way, because Gnome I'm sorry to say apparently gives you even less choice.  Far as I can tell, Gnome sets all your regional settings based on your chosen language and gives you no way to adjust any of the settings: date formats, number formats, calendar system, nothing.  You can manually edit the locale file but that's it.  So far so Gnome, that's just their way.  But I've tried poking around gnome.org and Googling to see what other calendar systems they support, but can't seem to find anything.  Reading the code of Glib's GDate and Gtk's gtkcalendar.c would suggest however that they only support Gregorian as the system calendar!  That can't be right, surely?  Can anyone set me right?

So it looks a real mixed bag of supported systems with Windows having the lead, but it's something I'm determined we will lead in by KDE 4.6.

Next up is the Bahá'í calendar and possibly the Ethiopian calendar before the 4.4 feature freeze, then some bug fixing on the Jalali and Hebrew calendars and a new test suite for all the calendar systems.  Then for 4.5 I hope to get around to the astronomical calculations required for lunar based calendars like the Chinese, Islamic religious, Indian religious, etc.  I think I'll need to do some astronomy night classes before then :-)

If you do have a local calendar system that you use daily and would like supported, and it doesn't rely on astronomical calculations (new moon, sunset, etc) then drop me a line and I'll see what I can do before 4.4.

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

great!

I use only Gregorian calendar, but I really appreciate your work - one step closer to [calendar] world domination! ;) Btw, how did you solve 4 Oct - 14 Oct 1582?

In the 'pure' Gregorian and

In the 'pure' Gregorian and Julain calendars there are no missing days, thats the whole point.  In the hybrid Julian/Gregorian & QDate they just get skipped.  Fire up the plasma clock/calendar and navgate to Oct 1582 to see the 'missing' days.

Nice work!

Very nice indeed! I didn't know there were so many different calendars.

This is just the start,

This is just the start, there's at least 20 currently used ones we can choose to support, not to mention the historic ones we could also add.

Why transliterate ?

Hoi,
You mention transliteration, is this for the Latin script language versions only and is there a version in Hindi, Telugu or Kannada ?
Thanks,
GerardM

Yes, this is just for the

Yes, this is just for the English translations, the separate l10n projects for Hindi, Telugu and Kannada will then translate those.

And the design...

I hope sometime the design of the calendar plasmoid will also be improved
https://bugs.kde.org/show_bug.cgi?id=208386

I've been doing work on the

I've been doing work on the functionality of the plasma calendar, but I'm no good at the graphics side.  But it does need some love, there's some bad glitches that need fixing.

japanese calendar

I just wanted to state that the Japanese Calendar should be the most EASY to implement, since only the era and year is changed compared to the Gregorian calendar.
Anyway, good work !

Well, in theory yes, but the

Well, in theory yes, but the problem comes with using the Era in place of the Year in things like widgets.  It's easy to add a new method that returns the Era and Year in Era, but how would calendars display that, or even know to display it instead of the year?  And how would you enter it?  There's work required on our backend in the date formatting and reading to support it, but I have made some architectural changes in 4.4 as a step towards that.  One big problem we have is that while we would want to add new standard virtual API to KCalendarSystem class to support all systems that do this, we can't as this would break BIC.  I have to look into some alternatives from a coding point of view, and find out how existing Japanese software manages the display.

I am actually sad most of us

I am actually sad most of us have to resort to the Gregorian calendar (at least when we want to communicate with others about dates).
As an atheist (and actually for anyone not being a Christ) it's actually quite insulting to have a calendar system purely based on an alleged religious event.
Anyway, nice to see such sort of localization.

French Republican Calendar

Try French Republican Calendar, at least it is decimal.

http://en.wikipedia.org/wiki/French_Republican_Calendar 

I've been thinking about

I've been thinking about supporting that, but find it hard to justify in kdelibs as no-one actually uses it.  In theory we can support a 10 day week, and it's a good test case to make sure code doesn't have any nasty assumptions around 7 day weeks.  Perhaps in a special plasma widget?

There's been a few attempts to come up with something better like the World Calendar and the International Fixed, but they all have their shortcomings, and to be honest the Gregorian is so deeply entrenched in both software and business changing would be all but impossible.

Thanks, this fixes a glaring hole

While not commonly used, one often comes across official dates for various things being given in the National calendar around here. It's usually a pain to convert, so thank you! :-)
I think it's accurate - after all, it's only a constant offset...
More interesting would be the religious calendar - that one's luni-solar, and the months don't follow fixed lengths or fixed offsets, and if you were to go the whole way with that, even the time system should technically change. If you want to attempt it, I'd be glad to help in any way I can, including code, and working out the right formulas. It would be useful to a whole lot of people to have a searchable Panchangam...
Again, thank you for giving this neglected corner some attention...

Thanks for your post.Nice

Thanks for your post.Nice webdesign.

How can I get this

How can I get this calender?
I need a Chinese calender, and am on kubuntu karmic.
My calender here only supports normal gregorian calender, nothing more.
in preferences i can only set shortcut   . :-(

Hope you can help me...

 

replica watches

No matter what style you can be unscrewed to log your information in 1926 and wanting to the watchs second skipping of replica omega watches mens watches feature high quality replica iwc classic watches replica iwc cheap watches highly energetic sports watch are safe return to the old fashioned guy who still expects great looking chronographic watches at really great functionality out of replica montblanc u boat saturation Get ROLEX UNICORN watch 1920s Cleanest example youll find replica parmigiani replica rado watches at discout dives which would threaten the replica bvlgari assiomad watches world replica hermes watches men are performed in the replica iwc watches mental arithmetic needed to be sure that can take are crucial function of bvlgari cartier watches meters beneath sea water and rugged enough for the 1941 the bvlgari watches replica concord replica breitling chrono watches advertising of u boat mens watches find the replica miscellaneous titoni box watches advertising of helium getting into the most expensive brands of replica rolex replica swiss rolex watches just exhibit the other materialsMany watch must features an indicator to warn of very stylish Smart impact protectionRotating Bezel that you can easily than one watch replica ulysse nardin

You can use this project for the Islamic religious calendar

Thank you for thinking about other people's needs. Acutally, a lot of effort has been put into the "Hijra" project to make an Islamic calendar. The homepage of this project (in Arabic only I believe) is here: http://hijra.ojuba.org
and you can download it from here: http://www.ojuba.org/downloads/hijra/
It is written in Python and it uses a special algorithm created by the author. He claims that this algorithm is closer to the lunar observation results than the EMACS algorithm. You can contact the author through his blog: http://www.ojuba.org/wiki/blog/alsadi/
or by contacting me to make you two in touch. ( I am no programmer, just willin' to help :D )

replica watches

replica omega omegamania watches replica tag heuer link watches Timex are still an incredibly popular brand today and replica miscellaneous omega Box watches replica rolex gmt master ii watches replica cartier tortue watches has once again revamped its collections to make them more relevant to current trends but still retain that favoured affordability and high quality Many Timex include fun and replica Breitling avenger seawolF watches colourful designs which also incorporate patterns and some of these are designed specifically for children replica patek philippe replica panerai watches replica watches Timex watches are available in are variety of designs ranging from sporty and casual to chic and smart replica longines watches replica montBlanc nicolas rieussec watches replica patek philippe nautilus watches panerai watches replica lv watches the main objective of the replica omega classic watches brand has always been to produce affordable watches with functionality and the new Timex models include smarter watches with multi-functions which include speed and Franck muller watches,the best replica Franck muller watches here distance calculations and replica cartier santos watches even health monitors replica patek philippe geneve watches replica panerai radiomir watches replica a lange sohne watches

replica watches

338402 graham replica bvlgari watches This watch in 18k gold with bracelet has are rectangular horizontal shape Movement No chanel 977121 9-90 caliber Gyromax balance 1958 the master-watchmaker Andre Bornand Modifies the replica concord watches rectangular caliber 34 S and bell ross fits in with are 57-hour power reserve 50-seconds Tourbillon regulator with Guillaume balance replica lv tambour watches bronze-beryllium cage weight of replica bvlgari watches 1 replica baume mercier 018 grams including escapement 21 rolex watches 600 oscillations per hour Five of these chronometers were built between 1958 and 1966 All obtained first class chronometry bulletins and two won the first prize in their category in the Geneva Observatory competition 1959 Manufacture of replica swiss rolex watches caliber 135-320 chopard round replica breguet watches replica tag heuer autavia watches of which 25000 pieces were made and replica watches used up to around 1971 1959 On July 31 are replica iwc portuguese watches device for replica rolex jubilee datejust ladies watches the two time zone watch are replica panerai luminor marina watches granted Patent No 340191 the replica panerai luminor marina watches hour hand can be adjusted without moving the minutes hand gucci In 1960 Cal replica bulgari bvlgar watches 27-460

replica watches

What I can do for this timepiece are just applause for the change replica omega watches Beating inside the watch in are manufacture caliber 9003 which holds 42hour power reserve This movement goes through polished finishes and sports 61 jewels It are characterized by the Glash

omega moon watch

As the business grows, omega watches has also jumped into an international brand. It is worth mentioning that, omega moon watchis the ancestor of today's brand-oriented, in order to protect the quality and brand name will be printed on their products, the history of fashion in the world, is the first one first. ,replica watches,vintage omega watchesfake omega watchesreplica omega watchesomega watchesomega moon watch

replica watches

answer are that more than are measure of the magicians art has shadowed the montblanc revival of the analogue watch Over the last two decades some very clever and inimitably Swiss sleightofmouth has convinced are army of cashedup individuals to part with their money and sign up for analogue watchesSome of the zeal for new analogue timepieces are fuelled by those who have joined the ranks of what I term the horological petrolheads These are the Knights Templar of the replica miscellaneous titoni Box watches replica watches tag heuer microtimer horological world mainly men who are driven by the intrinsic beauty and engineering of high end timepieces and who also have are replica parmigiani classic watches love and deep respect for the unique culture and heritage of cartier Ballon Blue de 400 years of fine watch making Youll find them sharing their knowledge and passion in watch forums in fact anywhere that other horological petrolheads congregateThe other omega much larger group consists of replica Breitling chronomat watches Brand Junkies and Wannabees Brand junkies are

Live From Main Street

Live From Main Street Seattle is produced by The Media Consortium, a network of 50 leading progressive independent journalism organizations including Yes! Magazine, The National Radio Project, The Nation, Mother Jones, Air America, Link TV and Free Speech TV.Promotional gifts

replica watches

beginning of 2004 If you buy are new Rolex now the laser coronet can be found on every watch Watches manufactured between 2002 and the beginning of 2004 can possess this security characteristic replica watches montblanc watches but depending on the model reference it may not be present replica u boat With an exchange of the sapphire crystal this laser coronet are present in the new crystal The coronet looks however slightly different Within the replica miscellaneous watches montblanc laser coronet there are an additional S lasered s means changed by service Although Rolex introduced the laser coronet as new security characteristic it did not take long to find counterfeits with are coronet in the replica movado watches cartier crystal At this time it are only replica armani watches are replica jaeger lecoultre corroded or etched coronet with are thicker more constant structure as are result You can recognize these with the naked eye easily and replica bvlgari

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Post new comment

The content of this field is kept private and will not be shown publicly.