当前位置: 首页 > news >正文

网站不备案做优化/品牌推广运营策划方案

网站不备案做优化,品牌推广运营策划方案,wordpress js合并,一起做业网站之前的1921年的出错了,又在网上找了一个改了下,没找到原链接,最后出现的格式是:牛年 辛丑 四月十六,有找到的可以放在评论 class LunDay//当天日期变为阴历{System.Globalization.ChineseLunisolarCalendar ChineseC…

之前的1921年的出错了,又在网上找了一个改了下,没找到原链接,最后出现的格式是:牛年  辛丑  四月十六,有找到的可以放在评论

    class LunDay//当天日期变为阴历{System.Globalization.ChineseLunisolarCalendar ChineseCalendar = new System.Globalization.ChineseLunisolarCalendar();private static string[] tg = { "甲", "乙", "丙", "丁", "戊", "己", "庚", "辛", "壬", "癸" };// 十天干private static string[] dz = { "子", "丑", "寅", "卯", "辰", "巳", "午", "未", "申", "酉", "戌", "亥" };// 十二地支private static string[] sx = { "鼠", "牛", "虎", "免", "龙", "蛇", "马", "羊", "猴", "鸡", "狗", "猪" };// 十二生肖private static string[] months = { "正", "二", "三", "四", "五", "六", "七", "八", "九", "十", "十一", "十二(腊)" };// 农历月private static string[] days1 = { "初", "十", "廿", "三" };// 农历日private static string[] days = { "一", "二", "三", "四", "五", "六", "七", "八", "九", "十" };private static string GetLunisolarYear(int year)// 返回农历年{if (year > 3){int tgIndex = (year - 4) % 10;int dzIndex = (year - 4) % 12;return string.Concat(sx[dzIndex],"年","  ",tg[tgIndex], dz[dzIndex] );}throw new ArgumentOutOfRangeException("无效的年份!");}private static string GetLunisolarMonth(int month)// 返回农历月{if (month < 13 && month > 0){return months[month - 1];}throw new ArgumentOutOfRangeException("无效的月份!");}private static string GetLunisolarDay(int day)// 返回农历日{if (day > 0 && day < 32){if (day != 20 && day != 30){return string.Concat(days1[(day - 1) / 10], days[(day - 1) % 10]);}else{return string.Concat(days[(day - 1) / 10], days1[1]);}}throw new ArgumentOutOfRangeException("无效的日!");}public  string GetLunisolarCalendar(DateTime dateTime)// 返回农历日期{bool isleap = false;LunDay lunDay = new LunDay();int year = lunDay.ChineseCalendar.GetYear(dateTime);int month = lunDay.ChineseCalendar.GetMonth(dateTime);int day = lunDay.ChineseCalendar.GetDayOfMonth(dateTime);//获取闰月,0 则表示没有闰月.当之前的月份都闰月存在,则需要当前月份减1int leapMonth = lunDay.ChineseCalendar.GetLeapMonth(year);if (leapMonth > 0){if (leapMonth <= month){if (leapMonth == month){isleap = true;  //农历闰月}   month--;  //月份修正}}return string.Concat(GetLunisolarYear(year),"  ", isleap ? "闰" : string.Empty, GetLunisolarMonth(month), "月", GetLunisolarDay(day));}}
}

调用时

  LunDay lunday = new LunDay();//计算阴历日期label8.Text = lunday.GetLunisolarCalendar(DateTime.Now);

 

http://www.jmfq.cn/news/5146687.html

相关文章:

  • 做电影网站配什么公众号/百度企业认证怎么认证
  • 电子商务网站规划与建设步骤/优化关键词排名工具
  • wordpress 图片上传失败/商品标题优化
  • 网站制作湖州/开封seo公司
  • 企业微信客户管理/班级优化大师的优点
  • 大型网站团队人数/百度seo优化是做什么的
  • 做视频网站需要什么空间吗/广州网络营销推广
  • 安徽智能网站建设制作/网络优化公司有哪些
  • 唐山做网站哪家好/网站推广优化排名seo
  • 深圳石岩网站建设/南昌seo计费管理
  • 广元网站建设价格/郑州关键词优化顾问
  • 虹口网站建设/国内设计公司前十名
  • 做电影网站怎么拿到版权/怎么建个人网站
  • 如何快速的建设网站/博客推广工具
  • 十堰市网站建设/b2b关键词排名工具
  • 怎么做自己的微信网站/大兴今日头条新闻
  • 衡阳网站备案/餐饮营销案例100例
  • 武汉app网站开发/东莞市网站seo内容优化
  • 京东网站建设/3小时百度收录新站方法
  • 自己做一个入库出库系统/宁波seo公司排名
  • 吸引企业做网站的文章内容/网站制作步骤流程图
  • 济南富腾网站建设/北京seo优化排名推广
  • 自己做发卡网站长/网站搜索排名靠前
  • 哪里可以接网站开发项目做/seo新手教程
  • 你博客使用的WordPress吧/seo点击排名
  • 做网站跟app需要多少钱/2345网址导航大全
  • 招远水利建设工程公司网站/寻找郑州网站优化公司
  • 信用卡申请网站建设/爱战网关键词挖掘查询工具
  • 如果想看网站的收费电影应该怎么做/东莞市网站seo内容优化
  • 微信做网站的弊端/seo提升排名