Giter Site home page Giter Site logo

panchangjs's Introduction

#panchangJS

Description

Javascript library for calculating Panchang (Hindu Calendar). PanchangJS calculates the following components of the Panchang.

  • Day
  • Tithi
  • Nakshatra
  • Karna
  • Yoga
  • Raasi
  • Ayanamsa

Usage

This JS library expects a date object at initialization and polpulates the JSON.

Usage:

var t = new Date();
panchang.calculate(t);

Output JSON:

{ Day: { name: 'Wednessday' },
  Tithi: 
   { name: 'Thadiya',
     start: Wed May 20 2015 06:25:45 GMT+0530 (IST),
     end: Thu May 21 2015 05:39:48 GMT+0530 (IST) },
  Nakshatra: 
   { name: 'Mrugasira',
     start: Tue May 19 2015 21:02:59 GMT+0530 (IST),
     end: Wed May 20 2015 20:45:22 GMT+0530 (IST) },
  Karna: 
   { name: 'Taitula',
     start: Wed May 20 2015 06:25:45 GMT+0530 (IST),
     end: Wed May 20 2015 17:57:42 GMT+0530 (IST) },
  Yoga: 
   { name: 'Dhrithi',
     start: Wed May 20 2015 06:27:54 GMT+0530 (IST),
     end: Thu May 21 2015 04:47:41 GMT+0530 (IST) },
  Ayanamsa: { name: '24 4\'22"' },
  Raasi: { name: 'Mithuna' },
  version: '0.2'
}

Check the sample app available with this repository for more details.

Working Implementations

A working implementation of the code base can be found at here

Authors

  • Srinivas Chenna

panchangjs's People

Contributors

schenna avatar

Watchers

James Cloos avatar Krupesh Desai avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.