public string chineselunisolardate(datetime adatatime)
年月", "甲乙丙丁戊己庚辛壬癸"[(year - 4) % 10]
, "子丑寅卯辰巳午未申酉戌亥"[(year - 4) % 12]
, "鼠牛虎兔龍蛇馬羊猴雞狗豬"[(year - 4) % 12]
, month == leapmonth ? "潤" : ""
, "無正二三四五六七**十冬臘"[leapmonth > 0 && leapmonth <= month ? month - 1 : month]
, "初十廿三"[day / 10]
, "日一二三四五六七**"[day % 10]);}
private void form1_load(object sender, eventargs e)
private void datetimepicker1_valuechanged(object sender, eventargs e)
//system.globalization.eastasianlunisolarcalendar
//system.globalization.taiwanlunisolarcalendar
//system.globalization.thaibuddhistcalendar
//system.globalization.koreanlunisolarcalendar
//system.globalization.japaneselunisolarcalendar
//system.globalization.hebrewcalendar
//system.globalization.hijricalendar
//system.globalization.japanesecalendar
公曆轉農曆函式
庫名 gton.h 程式by gshuang1 ifndef gton h 防止過載 define gton h uchar idata datenong 4 uchar code data1 公曆各個月的天數 uchar code days in a mon 2 12 uchar yearstyp...
c 版公曆轉農曆
using system namespace ljtools private static int year20 new int private static int year19 new int private static int year2000 new int private static ...
C Objective C 公曆轉農曆方法
c 農曆轉換函式 char getdayof psystemtime pst 地支名稱 const char cdizhi 屬相名稱 const char cshuxiang 農曆日期名 const char cdayname 農曆月份名 const char cmonname 公曆每月前面的天數 ...