New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vncalendar

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vncalendar

  • 0.1.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Vncalendar

Build Status Gem Version

Installation

Add this line to your application's Gemfile:

gem 'vncalendar'

And then execute:

$ bundle

Or install it yourself as:

$ gem install vncalendar

Usage

  • Convert solar date or Gregorian date - our regular date, to lunar date:
UTC_OFFSET = 7 # Asian/Ho_Chi_Minh
Vncalendar::Converter.solar_to_lunar(Date.new(2014, 9, 23), UTC_OFFSET)
  • Convert lunar date to solar date:
UTC_OFFSET = 7 # Asian/Ho_Chi_Minh
LEAP_MONTH_OF_THE_YEAR = 0 # no leap month in this year.
Vncalendar::Converter.lunar_to_solar(Date.new(2014, 8, 30), LEAP_MONTH_OF_THE_YEAR, UTC_OFFSET)

Development

After checking out the repo, run bin/setup to install dependencies. You can also run bin/console for an interactive prompt that will allow you to experiment.

You can run one of these commands to run the test suite:

rake test

# Or:
ruby -Ilib:test test/*

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/kidlab/vncalendar.

License

The gem is available as open source under the terms of the MIT License.

FAQs

Package last updated on 03 Apr 2016

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