阅 读 文 章

我出个题:怎么把阳历的日期换算成阴历?

[来源:网上转载 (http://www.chinaunix.net) | 作者:网友(ohwww) | 时间:2007-05-27 | 浏览:人次 ]


我是看到别的版上的帖子想到的,不过我一点也不会, :oops:  :oops:



 sakulagi 回复于:2004-05-21 22:10:33

好像有个程序叫lunar的可以


 bjgirl 回复于:2004-05-22 12:57:18

有意思@_@,关注一下 :oops:


 ohwww 回复于:2004-05-23 13:36:38

引用:原帖由 "sakulagi"]好像有个程序叫lunar的可以
 发表:


知道在那儿嘛?能找到嘛?


 sakulagi 回复于:2004-05-23 15:47:22

http://www.gnu.org/directory/print/postscript/pcal.html
lunar没找到。看到另外一个程序:lcal


 ohwww 回复于:2004-05-23 18:14:58

英文不太好,大体看了看,这个程序是用c语言写的吧??有没有shell下的呢??


 sakulagi 回复于:2004-05-23 19:08:01

那就是用shell脚本自己写一个计算了?可以找一个换算的算法,或者干脆参考一下那个lcal的源码,然后自己编一个shell脚本来算。


 xyb 回复于:2004-05-23 21:02:27

C 编写的 lunar 和 python 编写的 ccal 在这里:http://cxterm.sourceforge.net/ccal.html

不知道按你的想法 python 的程序是不是可以算做是“脚本”?


 admirer 回复于:2004-05-23 22:25:21

题目很好,但作起来难度很大,要有充分的时间去考虑才行噢!
关注中......


 ohwww 回复于:2004-05-24 11:30:28

引用:原帖由 "xyb" 发表:
C 编写的 lunar 和 python 编写的 ccal 在这里:http://cxterm.sourceforge.net/ccal.html

不知道按你的想法 python 的程序是不是可以算做是“脚本”?



 :oops: 我也不知道,我在看ccal的源码呢,挺不容易看的。不知道能不能在shell下运行。


 ohwww 回复于:2004-05-24 11:32:48

反正我是看不懂,我都不知道是用什么写的,怎么来运行,唉 :oops:  :? 

#!/usr/bin/env python
'''
Usage:  ccal Month [4-Digit-Year]
   or:  ccal 4-Digit-Year Month

This Python script is to show Solar and Lunar calender at the
same time. You need to have Python (2.0 or above) installed.

Acceptable date range:  1900/2 -- 2049/12

Output contains Chinese characters (mainland GB2312 encoding),
must be viewed in a Chinese-enabled system or "cxterm" etc.
programms under UNIX X-Windows.

The major reference for me to compose this program is:
lunar-2.1.tgz (1992), composed by
    Fung F. Lee <lee@umunhum.stanford.edu> and
    Ricky Yeung  <Ricky.Yeung@Eng.Sun.Com> .

And Lee and Yeung refered to:
    1. "Zhong1guo2 yin1yang2 ri4yue4 dui4zhao4 wan4nian2li4"
论坛热门帖子: [lch203] 写得蛮好的linux学习笔记(10-21)
[黑马制造] 学习java的30个目标(10-19)
[笑傲股林] 做测试半年了,有点迷茫,应该再学些什么提高自己的测试水平和测试能力呢?(10-19)
[udp8589] 大家用google的来吱一声? 用百度的~~也来报道下?(10-18)
[沂偌掳兆] 本人总结的一些认为C++比较经典的书籍,希望对大家有用(10-18)
TAG标签: 日期 怎么 回复 阴历 year 计算 一个 没有 month argv

最新评论 共有0位网友发表了评论

发表评论

评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名:(注册)
密码:
验证码:
匿名发表

网站地图友情连接交流论坛网站投稿广告服务联系我们留言本站长统计
Some rights reserved: www.chmhome.com, 鄂ICP备07010232号 E-mail:chinakafei@live.com,QQ:552766
中国咖啡技术网(Chmhome):国外编程技术书籍,中文编程手册,经典编程文章,交流技术,技术软件下载,计算机论文,毕业论文.