请教PHP怎么显示乙未年 乙酉月 己酉日 申时

WBOY
풀어 주다: 2016-06-13 12:25:27
원래의
1012명이 탐색했습니다.

请问PHP如何显示乙未年 乙酉月 己酉日 申时
今天是2015年9月30号 星期三 16时54分07秒 农历2015-8-18 乙未年 乙酉月 己酉日 申时
请问一下,像这样的时间用PHP如何显示
------解决思路----------------------

<br /><?php<br />//PHP阳历到农历转换的一个类<br />class Calendar<br />{<br />#农历每月的天数<br />    var $everyCMonth=array(<br />    0=>array(8,0,0,0,0,0,0,0,0,0,0,0,29,30,7,1),<br />    1=>array(0,29,30,29,29,30,29,30,29,30,30,30,29,0,8,2),<br />    2=>array(0,30,29,30,29,29,30,29,30,29,30,30,30,0,9,3),<br />    3=>array(5,29,30,29,30,29,29,30,29,29,30,30,29,30,10,4),<br />    4=>array(0,30,30,29,30,29,29,30,29,29,30,30,29,0,1,5),<br />    5=>array(0,30,30,29,30,30,29,29,30,29,30,29,30,0,2,6),<br />    6=>array(4,29,30,30,29,30,29,30,29,30,29,30,29,30,3,7),<br />    7=>array(0,29,30,29,30,29,30,30,29,30,29,30,29,0,4,8),<br />    8=>array(0,30,29,29,30,30,29,30,29,30,30,29,30,0,5,9),<br />    9=>array(2,29,30,29,29,30,29,30,29,30,30,30,29,30,6,10),<br />    10=>array(0,29,30,29,29,30,29,30,29,30,30,30,29,0,7,11),<br />    11=>array(6,30,29,30,29,29,30,29,29,30,30,29,30,30,8,12),<br />    12=>array(0,30,29,30,29,29,30,29,29,30,30,29,30,0,9,1),<br />    13=>array(0,30,30,29,30,29,29,30,29,29,30,29,30,0,10,2),<br />    14=>array(5,30,30,29,30,29,30,29,30,29,30,29,29,30,1,3),<br />    15=>array(0,30,29,30,30,29,30,29,30,29,30,29,30,0,2,4),<br />    16=>array(0,29,30,29,30,29,30,30,29,30,29,30,29,0,3,5),<br />    17=>array(2,30,29,29,30,29,30,30,29,30,30,29,30,29,4,6),<br />    18=>array(0,30,29,29,30,29,30,29,30,30,29,30,30,0,5,7),<br />    19=>array(7,29,30,29,29,30,29,29,30,30,29,30,30,30,6,8),<br />    20=>array(0,29,30,29,29,30,29,29,30,30,29,30,30,0,7,9),<br />    21=>array(0,30,29,30,29,29,30,29,29,30,29,30,30,0,8,10),<br />    22=>array(5,30,29,30,30,29,29,30,29,29,30,29,30,30,9,11),<br />    23=>array(0,29,30,30,29,30,29,30,29,29,30,29,30,0,10,12),<br />    24=>array(0,29,30,30,29,30,30,29,30,29,30,29,29,0,1,1),<br />    25=>array(4,30,29,30,29,30,30,29,30,30,29,30,29,30,2,2),<br />    26=>array(0,29,29,30,29,30,29,30,30,29,30,30,29,0,3,3),<br />    27=>array(0,30,29,29,30,29,30,29,30,29,30,30,30,0,4,4),<br />    28=>array(2,29,30,29,29,30,29,29,30,29,30,30,30,30,5,5),<br />    29=>array(0,29,30,29,29,30,29,29,30,29,30,30,30,0,6,6),<br />    30=>array(6,29,30,30,29,29,30,29,29,30,29,30,30,29,7,7),<br />    31=>array(0,30,30,29,30,29,30,29,29,30,29,30,29,0,8,8),<br />    32=>array(0,30,30,30,29,30,29,30,29,29,30,29,30,0,9,9),<br />    33=>array(5,29,30,30,29,30,30,29,30,29,30,29,29,30,10,10),<br />    34=>array(0,29,30,29,30,30,29,30,29,30,30,29,30,0,1,11),<br />    35=>array(0,29,29,30,29,30,29,30,30,29,30,30,29,0,2,12),<br />    36=>array(3,30,29,29,30,29,29,30,30,29,30,30,30,29,3,1),<br />    37=>array(0,30,29,29,30,29,29,30,29,30,30,30,29,0,4,2),<br />    38=>array(7,30,30,29,29,30,29,29,30,29,30,30,29,30,5,3),<br />    39=>array(0,30,30,29,29,30,29,29,30,29,30,29,30,0,6,4),<br />    40=>array(0,30,30,29,30,29,30,29,29,30,29,30,29,0,7,5),<br />    41=>array(6,30,30,29,30,30,29,30,29,29,30,29,30,29,8,6),<br />    42=>array(0,30,29,30,30,29,30,29,30,29,30,29,30,0,9,7),<br />    43=>array(0,29,30,29,30,29,30,30,29,30,29,30,29,0,10,8),<br />    44=>array(4,30,29,30,29,30,29,30,29,30,30,29,30,30,1,9),<br />    45=>array(0,29,29,30,29,29,30,29,30,30,30,29,30,0,2,10),<br />    46=>array(0,30,29,29,30,29,29,30,29,30,30,29,30,0,3,11),<br />    47=>array(2,30,30,29,29,30,29,29,30,29,30,29,30,30,4,12),<br />    48=>array(0,30,29,30,29,30,29,29,30,29,30,29,30,0,5,1),<br />    49=>array(7,30,29,30,30,29,30,29,29,30,29,30,29,30,6,2),<br />    50=>array(0,29,30,30,29,30,30,29,29,30,29,30,29,0,7,3),<br />    51=>array(0,30,29,30,30,29,30,29,30,29,30,29,30,0,8,4),<br />    52=>array(5,29,30,29,30,29,30,29,30,30,29,30,29,30,9,5),<br />    53=>array(0,29,30,29,29,30,30,29,30,30,29,30,29,0,10,6),<br />    54=>array(0,30,29,30,29,29,30,29,30,30,29,30,30,0,1,7),<br />    55=>array(3,29,30,29,30,29,29,30,29,30,29,30,30,30,2,8),<br />    56=>array(0,29,30,29,30,29,29,30,29,30,29,30,30,0,3,9),<br />    57=>array(8,30,29,30,29,30,29,29,30,29,30,29,30,29,4,10),<br />    58=>array(0,30,30,30,29,30,29,29,30,29,30,29,30,0,5,11),<br />    59=>array(0,29,30,30,29,30,29,30,29,30,29,30,29,0,6,12),<br />    60=>array(6,30,29,30,29,30,30,29,30,29,30,29,30,29,7,1),<br />    61=>array(0,30,29,30,29,30,29,30,30,29,30,29,30,0,8,2),<br />    62=>array(0,29,30,29,29,30,29,30,30,29,30,30,29,0,9,3),<br />    63=>array(4,30,29,30,29,29,30,29,30,29,30,30,30,29,10,4),<br />    64=>array(0,30,29,30,29,29,30,29,30,29,30,30,30,0,1,5),<br />    65=>array(0,29,30,29,30,29,29,30,29,29,30,30,29,0,2,6),<br />    66=>array(3,30,30,30,29,30,29,29,30,29,29,30,30,29,3,7),<br />    67=>array(0,30,30,29,30,30,29,29,30,29,30,29,30,0,4,8),<br />    68=>array(7,29,30,29,30,30,29,30,29,30,29,30,29,30,5,9),<br />    69=>array(0,29,30,29,30,29,30,30,29,30,29,30,29,0,6,10),<br />    70=>array(0,30,29,29,30,29,30,30,29,30,30,29,30,0,7,11),<br />    71=>array(5,29,30,29,29,30,29,30,29,30,30,30,29,30,8,12),<br />    72=>array(0,29,30,29,29,30,29,30,29,30,30,29,30,0,9,1),<br />    73=>array(0,30,29,30,29,29,30,29,29,30,30,29,30,0,10,2),<br />    74=>array(4,30,30,29,30,29,29,30,29,29,30,30,29,30,1,3),<br />    75=>array(0,30,30,29,30,29,29,30,29,29,30,29,30,0,2,4),<br />    76=>array(8,30,30,29,30,29,30,29,30,29,29,30,29,30,3,5),<br />    77=>array(0,30,29,30,30,29,30,29,30,29,30,29,29,0,4,6),<br />    78=>array(0,30,29,30,30,29,30,30,29,30,29,30,29,0,5,7),<br />    79=>array(6,30,29,29,30,29,30,30,29,30,30,29,30,29,6,8),<br />    80=>array(0,30,29,29,30,29,30,29,30,30,29,30,30,0,7,9),<br />    81=>array(0,29,30,29,29,30,29,29,30,30,29,30,30,0,8,10),<br />    82=>array(4,30,29,30,29,29,30,29,29,30,29,30,30,30,9,11),<br />    83=>array(0,30,29,30,29,29,30,29,29,30,29,30,30,0,10,12),<br />    84=>array(10,30,29,30,30,29,29,30,29,29,30,29,30,30,1,1),<br />    85=>array(0,29,30,30,29,30,29,30,29,29,30,29,30,0,2,2),<br />    86=>array(0,29,30,30,29,30,30,29,30,29,30,29,29,0,3,3),<br />    87=>array(6,30,29,30,29,30,30,29,30,30,29,30,29,29,4,4),<br />    88=>array(0,30,29,30,29,30,29,30,30,29,30,30,29,0,5,5),<br />    89=>array(0,30,29,29,30,29,29,30,30,29,30,30,30,0,6,6),<br />    90=>array(5,29,30,29,29,30,29,29,30,29,30,30,30,30,7,7),<br />    91=>array(0,29,30,29,29,30,29,29,30,29,30,30,30,0,8,8),<br />    92=>array(0,29,30,30,29,29,30,29,29,30,29,30,30,0,9,9),<br />    93=>array(3,29,30,30,29,30,29,30,29,29,30,29,30,29,10,10),<br />    94=>array(0,30,30,30,29,30,29,30,29,29,30,29,30,0,1,11),<br />    95=>array(8,29,30,30,29,30,29,30,30,29,29,30,29,30,2,12),<br />    96=>array(0,29,30,29,30,30,29,30,29,30,30,29,29,0,3,1),<br />    97=>array(0,30,29,30,29,30,29,30,30,29,30,30,29,0,4,2),<br />    98=>array(5,30,29,29,30,29,29,30,30,29,30,30,29,30,5,3),<br />    99=>array(0,30,29,29,30,29,29,30,29,30,30,30,29,0,6,4),<br />    100=>array(0,30,30,29,29,30,29,29,30,29,30,30,29,0,7,5),<br />    101=>array(4,30,30,29,30,29,30,29,29,30,29,30,29,30,8,6),<br />    102=>array(0,30,30,29,30,29,30,29,29,30,29,30,29,0,9,7),<br />    103=>array(0,30,30,29,30,30,29,30,29,29,30,29,30,0,10,8),<br />    104=>array(2,29,30,29,30,30,29,30,29,30,29,30,29,30,1,9),<br />    105=>array(0,29,30,29,30,29,30,30,29,30,29,30,29,0,2,10),<br />    106=>array(7,30,29,30,29,30,29,30,29,30,30,29,30,30,3,11),<br />    107=>array(0,29,29,30,29,29,30,29,30,30,30,29,30,0,4,12),<br />    108=>array(0,30,29,29,30,29,29,30,29,30,30,29,30,0,5,1),<br />    109=>array(5,30,30,29,29,30,29,29,30,29,30,29,30,30,6,2),<br />    110=>array(0,30,29,30,29,30,29,29,30,29,30,29,30,0,7,3),<br />    111=>array(0,30,29,30,30,29,30,29,29,30,29,30,29,0,8,4),<br />    112=>array(4,30,29,30,30,29,30,29,30,29,30,29,30,29,9,5),<br />    113=>array(0,30,29,30,29,30,30,29,30,29,30,29,30,0,10,6),<br />    114=>array(9,29,30,29,30,29,30,29,30,30,29,30,29,30,1,7),<br />    115=>array(0,29,30,29,29,30,29,30,30,30,29,30,29,0,2,8),<br />    116=>array(0,30,29,30,29,29,30,29,30,30,29,30,30,0,3,9),<br />    117=>array(6,29,30,29,30,29,29,30,29,30,29,30,30,30,4,10),<br />    118=>array(0,29,30,29,30,29,29,30,29,30,29,30,30,0,5,11),<br />    119=>array(0,30,29,30,29,30,29,29,30,29,29,30,30,0,6,12),<br />    120=>array(4,29,30,30,30,29,30,29,29,30,29,30,29,30,7,1)<br />    );<br />##############################<br />#农历天干<br /> <br />    var $mten=array("null","甲","乙","丙","丁","戊","己","庚","辛","壬","癸");    #农历地支<br />    var $mtwelve=array("null","子(鼠)","丑(牛)","寅(虎)","卯(兔)","辰(龙)",<br />                   "巳(蛇)","午(马)","未(羊)","申(猴)","酉(鸡)","戌(狗)","亥(猪)");    #农历月份<br />    var $mmonth=array("闰","正","二","三","四","五","六",<br />                  "七","八","九","十","十一","十二","月");<br />    var $mday=array("null","初一","初二","初三","初四","初五","初六","初七","初八","初九","初十",<br />                "十一","十二","十三","十四","十五","十六","十七","十八","十九","二十",<br />                "廿一","廿二","廿三","廿四","廿五","廿六","廿七","廿八","廿九","三十");#农历日<br />##############################<br />
로그인 후 복사

관련 라벨:
원천:php.cn
본 웹사이트의 성명
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.
인기 튜토리얼
더>
최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿