Giter Club home page Giter Club logo

almanac's Introduction

欢迎访问我的主页,您是第位访客!

almanac's People

Contributors

dependabot[bot] avatar huangdayu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

almanac's Issues

获取下一个节气错误,getNextSolarTerm

日期:2019年07月24日
时间:16时05分59秒00毫秒
..........
星座:狮子座
节气:2019-02-04 11:14:14 立春
指定节气:2019-09-23 15:50:02
24节气:2020-01-20 22:54:33 大寒

老哥这点建议换成表驱动

`

String d = lunarDTO.getMonth() + (lunarDTO.getMonth().length() < 2 ? "月" : "") + lunarDTO.getDay();

  | if (!lunarDTO.getLeapMonth()) {
  | if ("正月初一".equals(d)) {
  | happyDay += "春节 ";
  | flag = 1;
  | }
  | if ("正月初二".equals(d)) {
  | majorDay += "大年初二 ";
  | flag = 1;
  | }
  | if ("五月初五".equals(d)) {
  | happyDay += "端午节 ";
  | flag = 1;
  | }
  | if ("八月十五".equals(d)) {
  | happyDay += "中秋节 ";
  | flag = 1;
  | }
  | if ("腊月初八".equals(d)) {
  | majorDay += "腊八节 ";
  | }
  | if ("正月十五".equals(d)) {
  | happyDay += "元宵节 ";
  | majorDay += "上元节 ";
  | otherDay += "壮族歌墟节 苗族踩山节 达斡尔族卡钦 ";
  | }
  | if ("正月十六".equals(d)) {
  | otherDay += "侗族芦笙节(至正月二十) ";
  | }
  | if ("正月廿五".equals(d)) {
  | otherDay += "填仓节 ";
  | }
  | if ("正月廿九".equals(d)) {
  | otherDay += "送穷日 ";
  | }
  | if ("二月初一".equals(d)) {
  | otherDay += "瑶族忌鸟节 ";
  | }
  | if ("二月初二".equals(d)) {
  | majorDay += "春龙节(龙抬头) ";
  | otherDay += "畲族会亲节 ";
  | }
  | if ("二月初八".equals(d)) {
  | otherDay += "傈傈族刀杆节 ";
  | }
  | if ("三月初三".equals(d)) {
  | majorDay += "北帝诞 ";
  | otherDay += "苗族黎族歌墟节 ";
  | }
  | if ("三月十五".equals(d)) {
  | otherDay += "白族三月街(至三月二十) ";
  | }
  | if ("三月廿三".equals(d)) {
  | majorDay += "天后诞 妈祖诞 ";
  | }
  | if ("四月初八".equals(d)) {
  | majorDay += "牛王诞 ";
  | }
  | if ("四月十八".equals(d)) {
  | otherDay += "锡伯族西迁节 ";
  | }
  | if ("五月十三".equals(d)) {
  | majorDay += "关帝诞 ";
  | otherDay += "阿昌族泼水节 ";
  | }
  | if ("五月廿二".equals(d)) {
  | otherDay += "鄂温克族米阔鲁节 ";
  | }
  | if ("五月廿九".equals(d)) {
  | otherDay += "瑶族达努节 ";
  | }
  | if ("六月初六".equals(d)) {
  | majorDay += "姑姑节 天贶节 ";
  | otherDay += "壮族祭田节 瑶族尝新节 ";
  | }
  | if ("六月廿四".equals(d)) {
  | otherDay += "火把节、星回节(彝、白、佤、阿昌、纳西、基诺族 ) ";
  | }
  | if ("七月初七".equals(d)) {
  | majorDay += "七夕(**情人节,乞巧节,女儿节 ) ";
  | }
  | if ("七月十三".equals(d)) {
  | otherDay += "侗族吃新节 ";
  | }
  | if ("七月十五".equals(d)) {
  | majorDay += "中元节 鬼节";
  | }
  | if ("九月初九".equals(d)) {
  | majorDay += "重阳节 ";
  | }
  | if ("十月初一".equals(d)) {
  | majorDay += "祭祖节(十月朝) ";
  | }
  | if ("十月十五".equals(d)) {
  | majorDay += "下元节 ";
  | }
  | if ("十月十六".equals(d)) {
  | otherDay += "瑶族盘王节 ";
  | }
  | if ("十二初八".equals(d)) {
  | majorDay += "腊八节 ";
  | }
  | }
  | if ("正".equals(lunarDTO.getNextMonth())) { // 最后一月
  | if ("十二三十".equals(d) && lunarDTO.getDaysOfMonth() == 30) {
  | happyDay += "除夕 ";
  | flag = 1;
  | }
  | if ("十二廿九".equals(d) && lunarDTO.getDaysOfMonth() == 29) {
  | happyDay += "除夕 ";
  | flag = 1;
  | }
  | if ("十二廿三".equals(d)) {
  | majorDay += "小年 ";
  | }
  | }
  | if (solarTermDTO.getName() != null && !"".equals(solarTermDTO.getName())) {
  | if ("清明".equals(solarTermDTO.getName())) {
  | happyDay += solarTermDTO.getName() + " ";
  | flag = 1;
  | } else {
  | majorDay += solarTermDTO.getName() + " ";
  | }

`

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.