Code Monkey home page Code Monkey logo

nepcal's Introduction

nepcal · Build Status Build status Coverage Status Go Report Card GoDoc

Calendar and conversion utilities for Nepali dates

Inspired from the Linux command line tool cal, nepcal adds a few nifty features especially for Nepali (B.S.) dates.

Feature Rundown

Complete instructions on how to use each of these features are mentioned below.

  • Show the current Nepali month's calendar
  • Show today's Nepali date and day
  • Convert an A.D. date into B.S.
  • Convert an B.S. date into A.D.

Installation

Pre-built tarball binaries are available in the Releases page. Download and untar the binary for your platform, then move it into your $PATH e.g. /usr/local/bin.

You might need to give the script execution permissions. On Linux and MacOS this would mean using chmod as follows:

$ chmod +x /usr/local/bin/nepcal

MacOS via Homebrew

Tap the repository first.

$ brew tap srishanbhattarai/nepcal https://github.com/srishanbhattarai/nepcal

Then, run:

$ brew install nepcal

Manual Installation

You can also install nepcal manually if you have Go installed

$ go get -v github.com/srishanbhattarai/nepcal

Run nepcal on your terminal - if you see some formatted output, you are good to go!

Usage

Complete details can be found by running nepcal without any arguments.

Monthly Calendar

$ nepcal cal # or nepcal c

    जेठ 3, 2075
 Su Mo Tu We Th Fr Sa
       1  2  3  4  5
 6  7  8  9  10 11 12
 13 14 15 16 17 18 19
 20 21 22 23 24 25 26
 27 28 29 30 31 32

Today's date and day

$ nepcal date # or nepcal d

साउन 29, 2075 मंगलबार

Convert A.D. date to B.S.

Use the mm-dd-yyyy format when converting A.D. to B.S.

$ nepcal conv adtobs 08-21-1994

भदौ 5, 2051 आइतबार

Convert B.S. date to A.D.

Use the mm-dd-yyyy format when converting B.S. to A.D.

$ nepcal conv bstoad 18-08-2053

December 3, 1996 Tuesday

Contributing

Please file an issue if you have any problems with nepcal or, have a look at the issues page for contributing on existing issues. Also, read the code of conduct.

License

MIT

nepcal's People

Contributors

srishanbhattarai avatar goreleaserbot avatar mesaugat avatar dependabot[bot] avatar axispx avatar cham11ng avatar dependabot-preview[bot] avatar

Watchers

James Cloos 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.