Guest:
Register
|
Login
|
Member List
|
Search
|
Statistics
|
FAQ
Language
----------
Simplifed Chinese
Traditional Chinese
English
CnPack Forum
»
CnVCL 组件包
» 还是 CnCalendar 算法问题~~
‹‹ Last Thread
|
Next Thread ››
Poll
Trade
Reward
Activity
Printable Version
|
Email to Friend
|
Subscription
|
Favorites
Subject: 还是 CnCalendar 算法问题~~
飘云!
新警察
UID 67088
Digest Posts 0
Credits 23
Posts 8
点点分 23
Reading Access 10
Registered 2011-7-10
Status Offline
#1
Post at 2012-2-23 10:08
Profile
|
Blog
|
P.M.
还是 CnCalendar 算法问题~~
老大你好~ 感谢提供 CnCalendar ~
今天又发现了一个问题~
农历年推算,应该以立春为界~~
2012年2月4日 18点才立春,那么在18点之前应该为~ 辛卯年
而组件显示为壬辰
请修正,
Image Attachment
:
未命名.jpg
(2012-2-23 10:08, 83.67 K)
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
#2
Post at 2012-2-24 11:05
Profile
|
Blog
|
P.M.
我查了一下,确实是计算年干支的算法中没有考虑小时的因素,而只精确到日。将增加一个更精确的考虑小时的算法接口。
飘云!
新警察
UID 67088
Digest Posts 0
Credits 23
Posts 8
点点分 23
Reading Access 10
Registered 2011-7-10
Status Offline
#3
Post at 2012-2-24 11:20
Profile
|
Blog
|
P.M.
谢谢啸哥,坐等修正。。
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
#4
Post at 2012-2-24 11:30
Profile
|
Blog
|
P.M.
SVN上已提交新版,烦请更新下来试一试?例子中已换用新方法。
SVN地址见:
http://code.google.com/p/cnpack/source/checkout
飘云!
新警察
UID 67088
Digest Posts 0
Credits 23
Posts 8
点点分 23
Reading Access 10
Registered 2011-7-10
Status Offline
#5
Post at 2012-2-24 23:31
Profile
|
Blog
|
P.M.
谢谢老大,大部分正确,~
立春※2012-02-04 18:28
完美的话。18:28分之后,应该为为次年了,当然那要精确到分钟~~ 可能有点那个。。。
有问题再反馈,神速啊 ,感谢~~~
[
本帖最后由 飘云! 于 2012-2-24 23:40 编辑
]
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
#6
Post at 2012-2-25 07:21
Profile
|
Blog
|
P.M.
分钟在函数接口上容易处理,但我们使用的计算节气交接时刻算法的精确度实际上只能保持在10多分钟,也就是说我们算出来的交接时刻前后加起来有半小时左右的误差区间,这种误差幅度下,精确到分钟似乎意义不大。
Poll
Trade
Reward
Activity
CnPack Forum
CnPack English Forum
> CnWizards IDE Wizards
> CVSTracNT
> Announcements & Others
All times are GMT++8, the time now is 2024-12-4 17:04
Powered by
Discuz!
5.0.0
© 2001-2006
Comsenz Inc.
Processed in 0.008638 second(s), 8 queries , Gzip enabled
TOP
Clear Cookies
-
Contact Us
-
CnPack Website
-
Archiver
-
WAP
Member's CP Home
Edit Profile
Credits Transaction
Public User Groups
Buddy List
Main
Page Views
User Agents
Posts History
Top Forums
Top Threads
Post Ranking
Credit Ranking
Online Time
Team
Moderation Stats