Skip to content

shajeebtm/KollaVarsham

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 

Repository files navigation

KollaVarsham : Arduino library for converting Gregorian date to Malayalam Kollavarsham calendar date

Library setup

  • Mac users : Create a directory named KollaVarsham inside ~/Documents/Arduino/libraries/ . Then copy the file KollaVarsham.h into this newly created directory
  • Windows users : Create a directory named KollaVarsham inside My Documents\Arduino\libraries\ . Then copy the file KollaVarsham.h into this newly created directory
  • Linux users : Create a directory named KollaVarsham inside ~/Arduino/libraries/ . Then copy the file Kollavarsham.h into this newly created directory

Usage

  # <indlcude> KollaVarsham.h         // include library in your code
  KollaVarsham my_kv;                 // create an object from KollaVarsham class
  my_kv.fromGregorian(yyyy,mm,dd);    // invoke the interface to calculate Kollavarsham date with given date in integer form
  int kyyyy = my_kv.getYear();        // get Kollavarsham Year
  int kmm = my_kv.getMonth();         // get Kollavarsham Month
  int kdd = my_kv.getDay();           // get Kollavarsham Date

Month

The library returns month number between 1 through 12 . Corresponding month names are

"Chingam" , "Kanni", "Thulaam", "Vrishchikam", "Dhanu", "Makaram", "Kumbham", "Meenam", "Medam", "Idavam", "Mithunam", "Karkkidakam"

Example

Refer to example for a sample code.

Reference

This arduino implementation of the Kollavarsham is a port of the Perl implementation of the Pancanga (Hindu Almanac) by M. Fushimi and M. Yano which is documented at following locations

In addition I would like to extend my sincere thanks to kollavarsham calendar team - -

Please refer https://en.wikipedia.org/wiki/Malayalam_calendar for details of the Malayalam Kollavarsham calendar

About

Arduino implementation of Kollavarsham Malayalam Calendar

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages