首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Python > Python的lunardate

Python的lunardate

  • 资源大小:7.39 kB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: python lunardate

资 源 简 介

A Chinese Calendar Library in Pure Python Chinese Calendar: http://en.wikipedia.org/wiki/Chinese_calendar Usage >>> from lunardate import LunarDate >>> LunarDate.fromSolarDate(1976, 10, 1) LunarDate(1976, 8, 8, 1) >>> LunarDate(1976, 8, 8, 1).toSolarDate() datetime.date(1976, 10, 1) >>> LunarDate(1976, 8, 8, 1).year 1976 >>> LunarDate(1976, 8, 8, 1).month 8 >>> LunarDate(1976, 8, 8, 1).day 8 >>> LunarDate(1976, 8, 8, 1).isLeapMonth True >>> Limits this library can only deal with year from 1900 to 2050 (in chinese calendar). See also lunar: http://packages.qa.debian.org/l/lunar.html, A converter written in C, this program is derived from it. python-lunar: http://code.google.com/p/liblunar/, Another library written in
VIP VIP
  • IATWAY 22分钟前 成为了本站会员

  • 大智若愚 6小时前 成为了本站会员

  • Mason 8小时前 成为了本站会员

  • 9小时前 成为了本站会员

  • Half_Punch 1天前 成为了本站会员

  • liqing71718 1天前 成为了本站会员

  • 伟国 1天前 成为了本站会员

  • songy 1天前 成为了本站会员

  • 纯色幽默 1天前 成为了本站会员

  • odd? 1天前 成为了本站会员

0.181088s