Skip to content

将公历日期转为农历日期,PHP7.x.x版本通用。

Notifications You must be signed in to change notification settings

2233466866/lunar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP公历转农历扩展

Quick start(快速入门)

  1. Install(安装)

    git clone https://github.com/2233466866/lunar.git
    phpize
    ./configure
    make
    make install
    
    vim php.ini
    extension=lunar.so
    ESC
    :wq
    
  2. Usage(使用)

    # CLI
    php -r "echo date_to_lunar(2000,1,1);"
    # CODE
    echo date_to_lunar(2000,1,1);
    
  3. PS(说明)

    年份参数必须为1970-2100,否则会报error,或者结果计算错误。
    

About

将公历日期转为农历日期,PHP7.x.x版本通用。

Resources

Stars

Watchers

Forks

Packages

No packages published