Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bs-ad-convertor

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bs-ad-convertor

nepali date convertor

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

BS-AD-Convertor

Node module to convert Nepali date to English date and vice-versa

Installation:

#!javascript

npm install -g bs-ad-convertor //(for global)
npm install bs-ad-convertor //(for local)

Uses:

#!javascript

var dateconvertor=require("bs-ad-convertor");
	

console.log(dateconvertor.check_leapyear(2001)); // returns 'false' and if year is leap year it returns 'true'
console.log(dateconvertor.get_nepali_month(6)); // returns 'Ashwin'
console.log(dateconvertor.get_english_month(6));// returns 'June'
console.log(dateconvertor.return_day_name(6));//returns 'Friday' 


console.log(dateconvertor.eng_to_nep(1989,05,17)); 
/* returns
{ year: 2046,
  month: 2,
  date: 4,
  day: 'Wednesday',
  nmonth: 'Jestha',
  num_day: 4 } */

console.log(dateconvertor.nep_to_eng(2046,02,04));
/*returns
{ year: 1989,
  month: 5,
  date: 17,
  day: 'Wednesday',
  nmonth: 'May',
  num_day: 4 }*/

Keywords

FAQs

Package last updated on 06 Mar 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc