All Projects → srishanbhattarai → nepcal

srishanbhattarai / nepcal

Licence: MIT license
Robust, highly tested, cross-platform library and command-line utilities for Nepali dates

Programming Languages

go
31211 projects - #10 most used programming language
ruby
36898 projects - #4 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to nepcal

nepali-datetime
Python's core datetime inspired nepali datetime (BS date & NPT) package 🇳🇵
Stars: ✭ 36 (-2.7%)
Mutual labels:  date, nepal, nepali, nepali-date
nepali utils
A pure dart package with collection of Nepali Utilities like Date converter, Date formatter, DateTime, Nepali Numbers, Nepali Unicode, Nepali Moments and many more.
Stars: ✭ 22 (-40.54%)
Mutual labels:  nepal, nepali, nepali-calendar
nepali date picker
Material Style Date Picker with Bikram Sambat(Nepali) Calendar Support. Supports both Android and ios.
Stars: ✭ 30 (-18.92%)
Mutual labels:  nepal, nepali
bhitte-patro
Google Calendar for Nepali Date
Stars: ✭ 25 (-32.43%)
Mutual labels:  nepali, nepali-calendar
nepali-datasources
A list of data sources for Nepal related data.
Stars: ✭ 23 (-37.84%)
Mutual labels:  nepal, nepali
duration
Parse iso8601 duration strings, and use to shift dates/times.
Stars: ✭ 51 (+37.84%)
Mutual labels:  date
temps-lite
A smart, good-looking little app which tries to speak your language the way you are used to.
Stars: ✭ 40 (+8.11%)
Mutual labels:  date
date-extractor
Extract dates from text
Stars: ✭ 58 (+56.76%)
Mutual labels:  date
Chocobo-Date-Range-Picker
🗓️ Component - The Date Range Picker easier to use in AngularJS.
Stars: ✭ 23 (-37.84%)
Mutual labels:  date
react-native-date-ranges
idea from react-native-dates >
Stars: ✭ 68 (+83.78%)
Mutual labels:  date
elm-date-extra
Extra functions for working with Date
Stars: ✭ 41 (+10.81%)
Mutual labels:  date
persiantools
Jalali date and datetime with other tools
Stars: ✭ 101 (+172.97%)
Mutual labels:  date
Timespace
A jQuery plugin to handle displaying of time events
Stars: ✭ 27 (-27.03%)
Mutual labels:  date
time machine
A date and time API for Dart
Stars: ✭ 120 (+224.32%)
Mutual labels:  date
rubynepal.github.io
Official website of Ruby Nepal
Stars: ✭ 21 (-43.24%)
Mutual labels:  nepal
TimesDates.jl
Nanosecond resolution for Time and Date, TimeZones
Stars: ✭ 28 (-24.32%)
Mutual labels:  date
ISO8601
🎗 Super lightweight ISO8601 Date Formatter in Swift
Stars: ✭ 20 (-45.95%)
Mutual labels:  date
states-nepal
Get structured data about administrative division in Nepal.
Stars: ✭ 20 (-45.95%)
Mutual labels:  nepal
go-prettytime
Format GoLang dates in a “pretty” way. ex : just now, a minute ago, 2 hours ago , 3 minutes ago
Stars: ✭ 23 (-37.84%)
Mutual labels:  date
timelite
String date and time utilities 🕙
Stars: ✭ 17 (-54.05%)
Mutual labels:  date

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

Nepcal is a command line tool and a library that provides several functionalities pertaining to Bikram Sambat (B.S.) calendars, the official calendar in Nepal.

Table of Contents

Command Line

The nepcal CLI was initially inspired from the cal command on Linux, but expanded to have much more functionality, namely:

  • Show the current Nepali month's calendar (Similar to cal)
  • Show today's Nepali date and day
  • Convert A.D. (gregorian) dates to B.S. dates and vice-versa.

Installation

There are several ways to install the CLI. Pick the one that best suits you from the options below. In any case, run nepcal on your terminal; if you see some formatted output then you are good to go.

Pre-built binaries

Pre-built tarball executables/binaries are available in the Releases page for MacOS, Windows, and Linux. Download and untar the binary for your platform, then move it into your executable path. e.g. /usr/local/bin on Mac or Linux.

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

Homebrew on Mac

Tap the repository first.

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

Then, run:

$ brew install nepcal

Using go get

You can also install nepcal manually if you have the Go toolchain installed.

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

Usage

Complete details can be found by running nepcal help.

Monthly Calendar

$ nepcal # or nepcal cal
    चैत ११, २०७६
 Su Mo Tu We Th Fr Sa
                   १
 २  ३  ४  ५  ६  ७  ८
 ९  १० ११ १२ १३ १४ १५
 १६ १७ १८ १९ २० २१ २२
 २३ २४ २५ २६ २७ २८ २९
 ३०

Today's Date

$ nepcal date # or nepcal d

चैत १०, २०७६ सोमबार

Convert A.D. to B.S.

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

$ nepcal conv tobs 08-21-1994

भदौ ५, २०५१ आइतबार

Convert B.S. to A.D.

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

$ nepcal conv toad 08-18-2053

December 3, 1996 Tuesday

Library

If you would like to use nepcal as a Go library, the best reference is the Godoc documentation for this package which should be fairly easy to navigate. The CLI tool is also built on this library. However, there are additional functionalities provided in the library that are not relevant in the CLI, for example the NumDaysSpanned() method.

Acknowledgements

nepcal uses nepcal.com as the source of information used to create this tool. Among several sources, they were deemed most reliable.

The name nepcal was independently chosen for this project which happened to coincide with the website.

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].