GithubHelp home page GithubHelp logo

6tail / tyme4net Goto Github PK

View Code? Open in Web Editor NEW
10.0 1.0 1.0 166 KB

Tyme是一个非常强大的日历工具库,可以看作 Lunar 的升级版,拥有更优的设计和扩展性,支持公历和农历、星座、干支、生肖、节气、法定假日等。

Home Page: https://6tail.cn/tyme.html

License: MIT License

C# 100.00%
festival holiday lunar solar sixtycycle

tyme4net's Introduction

Tyme License

Tyme是一个非常强大的日历工具库,可以看作 Lunar 的升级版,拥有更优的设计和扩展性,支持公历和农历、星座、干支、生肖、节气、法定假日等。

基于netstandard2.0、C#7.3

示例

using System;
using tyme.solar;

namespace demo
{
    class Program
    {
        static void Main(string[] args)
        {
            // 公历日
            var solarDay = SolarDay.FromYmd(1986, 5, 29);
             
            // 转农历日
            var lunarDay = solarDay.GetLunarDay();
             
            Console.WriteLine(lunarDay.ToString());
            Console.WriteLine(solarDay.ToString());
        }
    }
}

文档

请移步至 https://6tail.cn/tyme.html

Star History

Star History Chart

tyme4net's People

Contributors

6tail avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

lonelyxmas

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.