Softpedia
 


SCRIPTS CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Orchard 1.6.1
  • Tine 2.0 Kristina 2013....
  • Acorn Media Player 1.8
  • ZenPen
  • Google Language Transla...
  • tTooltip 2.0
  • Obfuscate.js
  • validationJ 1.0.0
  • Starling 1.3
  • Video Sidebar Widgets 5.5
  • Home > Scripts > Snippets

    Logwriter

    Download button


    Downloads: 544  Tell us about an update
    User Rating:
    Rated by:
    Fair (2.4/5)
    21 user(s)
    Developer:

    Website:

    License / Price:

    Platforms:

    Databases:

    Language:

    Last Updated:

    Category:
    anna | More scripts
    px.sklar.com
    Freeware 

    Windows / Linux / BSD / Solaris
    N/A
    PHP
    June 25th, 2007, 09:43 GMT
    C: \ Snippets

     Read user reviews (0)  Refer to a friend  Subscribe

    Logwriter description

    Logwriter can return the date of Chinese lunar calendar which is corresponding to the Gregorian calendar. Range from Jan 1st,1901 to Feb 11th,2021.

    This function can return the date of Chinese lunar calendar which is corresponding to the Gregorian calendar. Range from Jan 1st,1901 to Feb 11th,2021.

    How to use:

    Array getchinesedate(int year,int month,int day); year,month,day are the year, month, day of the Gregorian calendar.

    Returns an array with 6 elements. Index 0 contains the year of the Chinese lunar calendar, index 1 contains the month of it. index 2 is the day of it, index 3 contains 1( if the month is a leap month ) and 0 ( if not ), index 4 is the Heavenly Stems of the Chinese lunar calendar, and index 5 contains the Earthly Branches of it.

    The Chinese Lunar Calendar is a yearly one, with the start of the lunar year being based on the cycles of the moon. Therefore, because of this cyclical dating, the beginning of the year can fall anywhere between late January and the middle of February. A complete cycle takes 60 years and is made up of five cycles of 12 years each.

    A cycle of Twelve Terrestrial Branches5 (Zi, Chou, Yin, Mao, Chen, Si, Wu, Wei, Shen, You, Xu, Hai), correlated with Ten Celestial Trunks6 (Jia, Yi, Bing, Ding, Wu, Ji, Geng, Xin, Ren, Gui), forms sixty units to mark the year, month, day and hour. And each unit has its own name, for example, General Jinbian of the Supreme Year Jiazi, General Chencai of the Supreme Year Yichou, etc.



    TAGS:

    Log writer | Log snippets | log writer | Log | writer | snippets

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM