Created
July 20, 2014 23:09
-
-
Save jikeytang/39d67cff5e820dc72a58 to your computer and use it in GitHub Desktop.
[ Javascript ] - 20140721-题目1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
根据系统日期,输出这一天是这一年的第多少天,第多少星期,是否为闰月? | |
比如日期为:2014-07-21 | |
PS: | |
1. 回复时注意加上下面这句话,才会有语法高亮或格式缩进。 | |
```javascript | |
// you code | |
``` | |
2. 粘贴代码时请使用shift+tab,缩进前面的空白。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
第二階段:要計算閏月
(1) 計算閏月的邏輯太複雜,我連中文的意思都搞不清楚,所以我抓別人的程式碼來用
(2) 已測試過
假設輸入 2014年10月24日, 系統計算:甲午(马)年 (闰>)九月初一
今天日期是 2014 年 7 月 21 日, 系統計算:甲午(马)年 六月廿五