├── LICENSE ├── README.md ├── app.js ├── app.json ├── app.wxss ├── datepicker-plus ├── index.js ├── index.json ├── index.wxml └── index.wxss ├── pages ├── index │ ├── index.js │ ├── index.json │ ├── index.wxml │ └── index.wxss └── logs │ ├── logs.js │ ├── logs.json │ ├── logs.wxml │ └── logs.wxss ├── project.config.json └── utils └── util.js /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # datepicker-plus 2 | 可选择公历,农历日期;可选择隐藏年份; 3 | 4 | 使用方法: 5 | 1.把项目根目录下的datepicker-plus文件夹放到小程序目录中; 6 | 2.在需要调用该组件的page里,以项目里pages/index页面为例,配置.json文件声明组件 7 | { 8 | "usingComponents": { 9 | "datepicker-plus": "/datepicker-plus/index" 10 | } 11 | } 12 | 3.在wxml里调用组件 13 | 14 | 15 | 参数: 16 | showDatePickerPlus:true/false,显示或隐藏组件 17 | initDate:'2018-02-12',初始化公历日期 18 | submit:返回值 {dateStr: 选择的日期字符串, 'showYear': 是否选择年份, 'dateType': 公农历} 19 | 20 | -------------------------------------------------------------------------------- /app.js: -------------------------------------------------------------------------------- 1 | //app.js 2 | App({ 3 | onLaunch: function () { 4 | // 展示本地存储能力 5 | var logs = wx.getStorageSync('logs') || [] 6 | logs.unshift(Date.now()) 7 | wx.setStorageSync('logs', logs) 8 | 9 | // 登录 10 | wx.login({ 11 | success: res => { 12 | // 发送 res.code 到后台换取 openId, sessionKey, unionId 13 | } 14 | }) 15 | // 获取用户信息 16 | wx.getSetting({ 17 | success: res => { 18 | if (res.authSetting['scope.userInfo']) { 19 | // 已经授权,可以直接调用 getUserInfo 获取头像昵称,不会弹框 20 | wx.getUserInfo({ 21 | success: res => { 22 | // 可以将 res 发送给后台解码出 unionId 23 | this.globalData.userInfo = res.userInfo 24 | 25 | // 由于 getUserInfo 是网络请求,可能会在 Page.onLoad 之后才返回 26 | // 所以此处加入 callback 以防止这种情况 27 | if (this.userInfoReadyCallback) { 28 | this.userInfoReadyCallback(res) 29 | } 30 | } 31 | }) 32 | } 33 | } 34 | }) 35 | }, 36 | globalData: { 37 | userInfo: null 38 | } 39 | }) -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | { 2 | "pages":[ 3 | "pages/index/index", 4 | "pages/logs/logs" 5 | ], 6 | "window":{ 7 | "backgroundTextStyle":"light", 8 | "navigationBarBackgroundColor": "#fff", 9 | "navigationBarTitleText": "WeChat", 10 | "navigationBarTextStyle":"black" 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /app.wxss: -------------------------------------------------------------------------------- 1 | /**app.wxss**/ 2 | .container { 3 | height: 100%; 4 | display: flex; 5 | flex-direction: column; 6 | align-items: center; 7 | justify-content: space-between; 8 | padding: 200rpx 0; 9 | box-sizing: border-box; 10 | } 11 | -------------------------------------------------------------------------------- /datepicker-plus/index.js: -------------------------------------------------------------------------------- 1 | // 阴历日期 1900年-2049年 用算法算出 2 | const nlDate = [{ 3 | "y": "1900(庚子年)", 4 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 29}, { 5 | "n": "五月", 6 | "d": 30 7 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "八月", "d": 30}, {"n": "闰八月", "d": 29}, { 8 | "n": "九月", 9 | "d": 30 10 | }, {"n": "十月", "d": 30}, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 11 | }, { 12 | "y": "1901(辛丑年)", 13 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 29}, { 14 | "n": "五月", 15 | "d": 30 16 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "八月", "d": 29}, {"n": "九月", "d": 30}, { 17 | "n": "十月", 18 | "d": 30 19 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 29}] 20 | }, { 21 | "y": "1902(壬寅年)", 22 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 30}, {"n": "四月", "d": 29}, { 23 | "n": "五月", 24 | "d": 29 25 | }, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, {"n": "九月", "d": 29}, { 26 | "n": "十月", 27 | "d": 30 28 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 30}] 29 | }, { 30 | "y": "1903(癸卯年)", 31 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 30}, { 32 | "n": "五月", 33 | "d": 29 34 | }, {"n": "闰五月", "d": 29}, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 29}, { 35 | "n": "九月", 36 | "d": 30 37 | }, {"n": "十月", "d": 30}, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 38 | }, { 39 | "y": "1904(甲辰年)", 40 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 30}, { 41 | "n": "五月", 42 | "d": 29 43 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "八月", "d": 29}, {"n": "九月", "d": 29}, { 44 | "n": "十月", 45 | "d": 30 46 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 29}] 47 | }, { 48 | "y": "1905(乙巳年)", 49 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 30}, { 50 | "n": "五月", 51 | "d": 30 52 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, {"n": "九月", "d": 29}, { 53 | "n": "十月", 54 | "d": 30 55 | }, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 56 | }, { 57 | "y": "1906(丙午年)", 58 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "三月", "d": 30}, {"n": "四月", "d": 29}, { 59 | "n": "闰四月", 60 | "d": 30 61 | }, {"n": "五月", "d": 29}, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, { 62 | "n": "九月", 63 | "d": 29 64 | }, {"n": "十月", "d": 30}, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 65 | }, { 66 | "y": "1907(丁未年)", 67 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 30}, { 68 | "n": "五月", 69 | "d": 29 70 | }, {"n": "六月", "d": 30}, {"n": "七月", "d": 30}, {"n": "八月", "d": 29}, {"n": "九月", "d": 30}, { 71 | "n": "十月", 72 | "d": 29 73 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 29}] 74 | }, { 75 | "y": "1908(戊申年)", 76 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 29}, {"n": "四月", "d": 30}, { 77 | "n": "五月", 78 | "d": 30 79 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "八月", "d": 29}, {"n": "九月", "d": 30}, { 80 | "n": "十月", 81 | "d": 30 82 | }, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 83 | }, { 84 | "y": "1909(己酉年)", 85 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "闰二月", "d": 29}, {"n": "三月", "d": 29}, { 86 | "n": "四月", 87 | "d": 30 88 | }, {"n": "五月", "d": 29}, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, { 89 | "n": "九月", 90 | "d": 30 91 | }, {"n": "十月", "d": 30}, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 92 | }, { 93 | "y": "1910(庚戌年)", 94 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 29}, { 95 | "n": "五月", 96 | "d": 30 97 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "八月", "d": 29}, {"n": "九月", "d": 30}, { 98 | "n": "十月", 99 | "d": 30 100 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 29}] 101 | }, { 102 | "y": "1911(辛亥年)", 103 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 30}, {"n": "四月", "d": 29}, { 104 | "n": "五月", 105 | "d": 29 106 | }, {"n": "六月", "d": 30}, {"n": "闰六月", "d": 29}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, { 107 | "n": "九月", 108 | "d": 30 109 | }, {"n": "十月", "d": 29}, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 30}] 110 | }, { 111 | "y": "1912(壬子年)", 112 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 30}, {"n": "四月", "d": 29}, { 113 | "n": "五月", 114 | "d": 29 115 | }, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 29}, {"n": "九月", "d": 30}, { 116 | "n": "十月", 117 | "d": 30 118 | }, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 119 | }, { 120 | "y": "1913(癸丑年)", 121 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 30}, { 122 | "n": "五月", 123 | "d": 29 124 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "八月", "d": 29}, {"n": "九月", "d": 29}, { 125 | "n": "十月", 126 | "d": 30 127 | }, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 128 | }, { 129 | "y": "1914(甲寅年)", 130 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 30}, { 131 | "n": "五月", 132 | "d": 29 133 | }, {"n": "闰五月", "d": 30}, {"n": "六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "八月", "d": 29}, { 134 | "n": "九月", 135 | "d": 29 136 | }, {"n": "十月", "d": 30}, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 137 | }, { 138 | "y": "1915(乙卯年)", 139 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 30}, {"n": "四月", "d": 30}, { 140 | "n": "五月", 141 | "d": 29 142 | }, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, {"n": "九月", "d": 29}, { 143 | "n": "十月", 144 | "d": 30 145 | }, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 29}] 146 | }, { 147 | "y": "1916(丙辰年)", 148 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 30}, { 149 | "n": "五月", 150 | "d": 29 151 | }, {"n": "六月", "d": 30}, {"n": "七月", "d": 30}, {"n": "八月", "d": 29}, {"n": "九月", "d": 30}, { 152 | "n": "十月", 153 | "d": 29 154 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 29}] 155 | }, { 156 | "y": "1917(丁巳年)", 157 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "闰二月", "d": 29}, {"n": "三月", "d": 30}, { 158 | "n": "四月", 159 | "d": 29 160 | }, {"n": "五月", "d": 30}, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, { 161 | "n": "九月", 162 | "d": 30 163 | }, {"n": "十月", "d": 29}, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 29}] 164 | }, { 165 | "y": "1918(戊午年)", 166 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 29}, {"n": "四月", "d": 30}, { 167 | "n": "五月", 168 | "d": 29 169 | }, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, {"n": "九月", "d": 30}, { 170 | "n": "十月", 171 | "d": 29 172 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 30}] 173 | }, { 174 | "y": "1919(己未年)", 175 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 29}, { 176 | "n": "五月", 177 | "d": 30 178 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 29}, {"n": "闰七月", "d": 30}, {"n": "八月", "d": 30}, { 179 | "n": "九月", 180 | "d": 29 181 | }, {"n": "十月", "d": 30}, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 30}] 182 | }, { 183 | "y": "1920(庚申年)", 184 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 29}, { 185 | "n": "五月", 186 | "d": 30 187 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, {"n": "九月", "d": 29}, { 188 | "n": "十月", 189 | "d": 30 190 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 30}] 191 | }, { 192 | "y": "1921(辛酉年)", 193 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 30}, {"n": "四月", "d": 29}, { 194 | "n": "五月", 195 | "d": 29 196 | }, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 29}, {"n": "九月", "d": 30}, { 197 | "n": "十月", 198 | "d": 29 199 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 30}] 200 | }, { 201 | "y": "1922(壬戌年)", 202 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 30}, {"n": "四月", "d": 30}, { 203 | "n": "五月", 204 | "d": 29 205 | }, {"n": "闰五月", "d": 29}, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 29}, { 206 | "n": "九月", 207 | "d": 30 208 | }, {"n": "十月", "d": 29}, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 30}] 209 | }, { 210 | "y": "1923(癸亥年)", 211 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "三月", "d": 30}, {"n": "四月", "d": 29}, { 212 | "n": "五月", 213 | "d": 30 214 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "八月", "d": 29}, {"n": "九月", "d": 29}, { 215 | "n": "十月", 216 | "d": 30 217 | }, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 218 | }, { 219 | "y": "1924(甲子年)", 220 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "三月", "d": 30}, {"n": "四月", "d": 29}, { 221 | "n": "五月", 222 | "d": 30 223 | }, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, {"n": "九月", "d": 29}, { 224 | "n": "十月", 225 | "d": 30 226 | }, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 29}] 227 | }, { 228 | "y": "1925(乙丑年)", 229 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 30}, {"n": "四月", "d": 29}, { 230 | "n": "闰四月", 231 | "d": 30 232 | }, {"n": "五月", "d": 30}, {"n": "六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "八月", "d": 30}, { 233 | "n": "九月", 234 | "d": 29 235 | }, {"n": "十月", "d": 30}, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 236 | }, { 237 | "y": "1926(丙寅年)", 238 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 29}, {"n": "三月", "d": 30}, {"n": "四月", "d": 29}, { 239 | "n": "五月", 240 | "d": 30 241 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "八月", "d": 30}, {"n": "九月", "d": 29}, { 242 | "n": "十月", 243 | "d": 30 244 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 29}] 245 | }, { 246 | "y": "1927(丁卯年)", 247 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 29}, {"n": "四月", "d": 30}, { 248 | "n": "五月", 249 | "d": 29 250 | }, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, {"n": "九月", "d": 29}, { 251 | "n": "十月", 252 | "d": 30 253 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 30}] 254 | }, { 255 | "y": "1928(戊辰年)", 256 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "闰二月", "d": 29}, {"n": "三月", "d": 29}, { 257 | "n": "四月", 258 | "d": 30 259 | }, {"n": "五月", "d": 29}, {"n": "六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "八月", "d": 29}, { 260 | "n": "九月", 261 | "d": 30 262 | }, {"n": "十月", "d": 30}, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 30}] 263 | }, { 264 | "y": "1929(己巳年)", 265 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 29}, { 266 | "n": "五月", 267 | "d": 30 268 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, {"n": "九月", "d": 29}, { 269 | "n": "十月", 270 | "d": 30 271 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 30}] 272 | }, { 273 | "y": "1930(庚午年)", 274 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "三月", "d": 30}, {"n": "四月", "d": 29}, { 275 | "n": "五月", 276 | "d": 29 277 | }, {"n": "六月", "d": 30}, {"n": "闰六月", "d": 29}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, { 278 | "n": "九月", 279 | "d": 29 280 | }, {"n": "十月", "d": 30}, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 29}] 281 | }, { 282 | "y": "1931(辛未年)", 283 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 30}, { 284 | "n": "五月", 285 | "d": 29 286 | }, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 29}, {"n": "九月", "d": 30}, { 287 | "n": "十月", 288 | "d": 29 289 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 29}] 290 | }, { 291 | "y": "1932(壬申年)", 292 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 30}, {"n": "三月", "d": 30}, {"n": "四月", "d": 29}, { 293 | "n": "五月", 294 | "d": 30 295 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "八月", "d": 29}, {"n": "九月", "d": 29}, { 296 | "n": "十月", 297 | "d": 30 298 | }, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 299 | }, { 300 | "y": "1933(癸酉年)", 301 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "三月", "d": 30}, {"n": "四月", "d": 29}, { 302 | "n": "五月", 303 | "d": 30 304 | }, {"n": "闰五月", "d": 29}, {"n": "六月", "d": 30}, {"n": "七月", "d": 30}, {"n": "八月", "d": 29}, { 305 | "n": "九月", 306 | "d": 30 307 | }, {"n": "十月", "d": 29}, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 308 | }, { 309 | "y": "1934(甲戌年)", 310 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 30}, { 311 | "n": "五月", 312 | "d": 30 313 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "八月", "d": 29}, {"n": "九月", "d": 30}, { 314 | "n": "十月", 315 | "d": 30 316 | }, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 317 | }, { 318 | "y": "1935(乙亥年)", 319 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 29}, {"n": "三月", "d": 30}, {"n": "四月", "d": 29}, { 320 | "n": "五月", 321 | "d": 30 322 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "八月", "d": 30}, {"n": "九月", "d": 29}, { 323 | "n": "十月", 324 | "d": 30 325 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 29}] 326 | }, { 327 | "y": "1936(丙子年)", 328 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 29}, {"n": "闰三月", "d": 30}, { 329 | "n": "四月", 330 | "d": 29 331 | }, {"n": "五月", "d": 29}, {"n": "六月", "d": 30}, {"n": "七月", "d": 30}, {"n": "八月", "d": 29}, { 332 | "n": "九月", 333 | "d": 30 334 | }, {"n": "十月", "d": 30}, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 29}] 335 | }, { 336 | "y": "1937(丁丑年)", 337 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 29}, {"n": "四月", "d": 30}, { 338 | "n": "五月", 339 | "d": 29 340 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "八月", "d": 29}, {"n": "九月", "d": 30}, { 341 | "n": "十月", 342 | "d": 30 343 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 29}] 344 | }, { 345 | "y": "1938(戊寅年)", 346 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 29}, { 347 | "n": "五月", 348 | "d": 30 349 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 29}, {"n": "闰七月", "d": 30}, {"n": "八月", "d": 29}, { 350 | "n": "九月", 351 | "d": 30 352 | }, {"n": "十月", "d": 30}, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 353 | }, { 354 | "y": "1939(己卯年)", 355 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 29}, { 356 | "n": "五月", 357 | "d": 30 358 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, {"n": "九月", "d": 29}, { 359 | "n": "十月", 360 | "d": 30 361 | }, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 362 | }, { 363 | "y": "1940(庚辰年)", 364 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 30}, { 365 | "n": "五月", 366 | "d": 29 367 | }, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 29}, {"n": "九月", "d": 30}, { 368 | "n": "十月", 369 | "d": 29 370 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 29}] 371 | }, { 372 | "y": "1941(辛巳年)", 373 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 30}, { 374 | "n": "五月", 375 | "d": 30 376 | }, {"n": "六月", "d": 29}, {"n": "闰六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 29}, { 377 | "n": "九月", 378 | "d": 30 379 | }, {"n": "十月", "d": 29}, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 29}] 380 | }, { 381 | "y": "1942(壬午年)", 382 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 30}, {"n": "四月", "d": 30}, { 383 | "n": "五月", 384 | "d": 29 385 | }, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, {"n": "九月", "d": 29}, { 386 | "n": "十月", 387 | "d": 30 388 | }, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 389 | }, { 390 | "y": "1943(癸未年)", 391 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 30}, { 392 | "n": "五月", 393 | "d": 29 394 | }, {"n": "六月", "d": 30}, {"n": "七月", "d": 30}, {"n": "八月", "d": 29}, {"n": "九月", "d": 30}, { 395 | "n": "十月", 396 | "d": 29 397 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 29}] 398 | }, { 399 | "y": "1944(甲申年)", 400 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 30}, {"n": "四月", "d": 29}, { 401 | "n": "闰四月", 402 | "d": 30 403 | }, {"n": "五月", "d": 29}, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, { 404 | "n": "九月", 405 | "d": 30 406 | }, {"n": "十月", "d": 29}, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 30}] 407 | }, { 408 | "y": "1945(乙酉年)", 409 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 29}, {"n": "三月", "d": 30}, {"n": "四月", "d": 29}, { 410 | "n": "五月", 411 | "d": 29 412 | }, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, {"n": "九月", "d": 30}, { 413 | "n": "十月", 414 | "d": 30 415 | }, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 416 | }, { 417 | "y": "1946(丙戌年)", 418 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 29}, {"n": "四月", "d": 30}, { 419 | "n": "五月", 420 | "d": 29 421 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "八月", "d": 29}, {"n": "九月", "d": 30}, { 422 | "n": "十月", 423 | "d": 30 424 | }, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 425 | }, { 426 | "y": "1947(丁亥年)", 427 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 30}, {"n": "闰二月", "d": 29}, {"n": "三月", "d": 29}, { 428 | "n": "四月", 429 | "d": 30 430 | }, {"n": "五月", "d": 29}, {"n": "六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "八月", "d": 29}, { 431 | "n": "九月", 432 | "d": 30 433 | }, {"n": "十月", "d": 29}, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 30}] 434 | }, { 435 | "y": "1948(戊子年)", 436 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 30}, {"n": "四月", "d": 29}, { 437 | "n": "五月", 438 | "d": 30 439 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, {"n": "九月", "d": 29}, { 440 | "n": "十月", 441 | "d": 30 442 | }, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 443 | }, { 444 | "y": "1949(己丑年)", 445 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 30}, {"n": "四月", "d": 30}, { 446 | "n": "五月", 447 | "d": 29 448 | }, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "闰七月", "d": 29}, {"n": "八月", "d": 30}, { 449 | "n": "九月", 450 | "d": 29 451 | }, {"n": "十月", "d": 30}, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 452 | }, { 453 | "y": "1950(庚寅年)", 454 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "三月", "d": 30}, {"n": "四月", "d": 29}, { 455 | "n": "五月", 456 | "d": 30 457 | }, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 29}, {"n": "九月", "d": 30}, { 458 | "n": "十月", 459 | "d": 29 460 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 29}] 461 | }, { 462 | "y": "1951(辛卯年)", 463 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 30}, {"n": "四月", "d": 30}, { 464 | "n": "五月", 465 | "d": 29 466 | }, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, {"n": "九月", "d": 29}, { 467 | "n": "十月", 468 | "d": 30 469 | }, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 470 | }, { 471 | "y": "1952(壬辰年)", 472 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 30}, { 473 | "n": "五月", 474 | "d": 29 475 | }, {"n": "闰五月", "d": 30}, {"n": "六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "八月", "d": 30}, { 476 | "n": "九月", 477 | "d": 29 478 | }, {"n": "十月", "d": 30}, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 479 | }, { 480 | "y": "1953(癸巳年)", 481 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 29}, { 482 | "n": "五月", 483 | "d": 30 484 | }, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, {"n": "九月", "d": 30}, { 485 | "n": "十月", 486 | "d": 29 487 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 29}] 488 | }, { 489 | "y": "1954(甲午年)", 490 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 30}, {"n": "四月", "d": 29}, { 491 | "n": "五月", 492 | "d": 29 493 | }, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, {"n": "九月", "d": 30}, { 494 | "n": "十月", 495 | "d": 29 496 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 30}] 497 | }, { 498 | "y": "1955(乙未年)", 499 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "闰三月", "d": 30}, { 500 | "n": "四月", 501 | "d": 29 502 | }, {"n": "五月", "d": 29}, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, { 503 | "n": "九月", 504 | "d": 29 505 | }, {"n": "十月", "d": 30}, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 30}] 506 | }, { 507 | "y": "1956(丙申年)", 508 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 30}, { 509 | "n": "五月", 510 | "d": 29 511 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "八月", "d": 29}, {"n": "九月", "d": 30}, { 512 | "n": "十月", 513 | "d": 29 514 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 30}] 515 | }, { 516 | "y": "1957(丁酉年)", 517 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 30}, {"n": "四月", "d": 29}, { 518 | "n": "五月", 519 | "d": 30 520 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, {"n": "闰八月", "d": 29}, { 521 | "n": "九月", 522 | "d": 30 523 | }, {"n": "十月", "d": 29}, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 29}] 524 | }, { 525 | "y": "1958(戊戌年)", 526 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 30}, {"n": "三月", "d": 30}, {"n": "四月", "d": 29}, { 527 | "n": "五月", 528 | "d": 30 529 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, {"n": "九月", "d": 29}, { 530 | "n": "十月", 531 | "d": 30 532 | }, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 533 | }, { 534 | "y": "1959(己亥年)", 535 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "三月", "d": 30}, {"n": "四月", "d": 29}, { 536 | "n": "五月", 537 | "d": 30 538 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "八月", "d": 29}, {"n": "九月", "d": 30}, { 539 | "n": "十月", 540 | "d": 29 541 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 29}] 542 | }, { 543 | "y": "1960(庚子年)", 544 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 30}, {"n": "四月", "d": 29}, { 545 | "n": "五月", 546 | "d": 30 547 | }, {"n": "六月", "d": 30}, {"n": "闰六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "八月", "d": 29}, { 548 | "n": "九月", 549 | "d": 30 550 | }, {"n": "十月", "d": 29}, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 29}] 551 | }, { 552 | "y": "1961(辛丑年)", 553 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 30}, {"n": "四月", "d": 29}, { 554 | "n": "五月", 555 | "d": 30 556 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "八月", "d": 30}, {"n": "九月", "d": 29}, { 557 | "n": "十月", 558 | "d": 30 559 | }, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 560 | }, { 561 | "y": "1962(壬寅年)", 562 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 29}, { 563 | "n": "五月", 564 | "d": 30 565 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "八月", "d": 30}, {"n": "九月", "d": 29}, { 566 | "n": "十月", 567 | "d": 30 568 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 29}] 569 | }, { 570 | "y": "1963(癸卯年)", 571 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 30}, {"n": "四月", "d": 29}, { 572 | "n": "闰四月", 573 | "d": 29 574 | }, {"n": "五月", "d": 30}, {"n": "六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "八月", "d": 29}, { 575 | "n": "九月", 576 | "d": 30 577 | }, {"n": "十月", "d": 30}, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 29}] 578 | }, { 579 | "y": "1964(甲辰年)", 580 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 30}, {"n": "四月", "d": 29}, { 581 | "n": "五月", 582 | "d": 29 583 | }, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, {"n": "九月", "d": 29}, { 584 | "n": "十月", 585 | "d": 30 586 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 30}] 587 | }, { 588 | "y": "1965(乙巳年)", 589 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 30}, { 590 | "n": "五月", 591 | "d": 29 592 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "八月", "d": 29}, {"n": "九月", "d": 29}, { 593 | "n": "十月", 594 | "d": 30 595 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 29}] 596 | }, { 597 | "y": "1966(丙午年)", 598 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 30}, {"n": "三月", "d": 30}, {"n": "闰三月", "d": 29}, { 599 | "n": "四月", 600 | "d": 30 601 | }, {"n": "五月", "d": 29}, {"n": "六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "八月", "d": 29}, { 602 | "n": "九月", 603 | "d": 29 604 | }, {"n": "十月", "d": 30}, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 29}] 605 | }, { 606 | "y": "1967(丁未年)", 607 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 30}, { 608 | "n": "五月", 609 | "d": 30 610 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, {"n": "九月", "d": 29}, { 611 | "n": "十月", 612 | "d": 30 613 | }, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 614 | }, { 615 | "y": "1968(戊申年)", 616 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 30}, { 617 | "n": "五月", 618 | "d": 30 619 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "闰七月", "d": 29}, {"n": "八月", "d": 30}, { 620 | "n": "九月", 621 | "d": 29 622 | }, {"n": "十月", "d": 30}, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 623 | }, { 624 | "y": "1969(己酉年)", 625 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 30}, { 626 | "n": "五月", 627 | "d": 29 628 | }, {"n": "六月", "d": 30}, {"n": "七月", "d": 30}, {"n": "八月", "d": 29}, {"n": "九月", "d": 30}, { 629 | "n": "十月", 630 | "d": 29 631 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 29}] 632 | }, { 633 | "y": "1970(庚戌年)", 634 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 29}, {"n": "四月", "d": 30}, { 635 | "n": "五月", 636 | "d": 29 637 | }, {"n": "六月", "d": 30}, {"n": "七月", "d": 30}, {"n": "八月", "d": 29}, {"n": "九月", "d": 30}, { 638 | "n": "十月", 639 | "d": 30 640 | }, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 641 | }, { 642 | "y": "1971(辛亥年)", 643 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 29}, { 644 | "n": "五月", 645 | "d": 30 646 | }, {"n": "闰五月", "d": 29}, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, { 647 | "n": "九月", 648 | "d": 30 649 | }, {"n": "十月", "d": 30}, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 650 | }, { 651 | "y": "1972(壬子年)", 652 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 29}, { 653 | "n": "五月", 654 | "d": 30 655 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "八月", "d": 29}, {"n": "九月", "d": 30}, { 656 | "n": "十月", 657 | "d": 30 658 | }, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 659 | }, { 660 | "y": "1973(癸丑年)", 661 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 30}, {"n": "四月", "d": 29}, { 662 | "n": "五月", 663 | "d": 29 664 | }, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 29}, {"n": "九月", "d": 30}, { 665 | "n": "十月", 666 | "d": 30 667 | }, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 668 | }, { 669 | "y": "1974(甲寅年)", 670 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 30}, { 671 | "n": "闰四月", 672 | "d": 29 673 | }, {"n": "五月", "d": 29}, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 29}, { 674 | "n": "九月", 675 | "d": 30 676 | }, {"n": "十月", "d": 30}, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 677 | }, { 678 | "y": "1975(乙卯年)", 679 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 30}, { 680 | "n": "五月", 681 | "d": 29 682 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "八月", "d": 29}, {"n": "九月", "d": 29}, { 683 | "n": "十月", 684 | "d": 30 685 | }, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 686 | }, { 687 | "y": "1976(丙辰年)", 688 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 30}, { 689 | "n": "五月", 690 | "d": 29 691 | }, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, {"n": "闰八月", "d": 29}, { 692 | "n": "九月", 693 | "d": 29 694 | }, {"n": "十月", "d": 30}, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 695 | }, { 696 | "y": "1977(丁巳年)", 697 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 30}, {"n": "四月", "d": 30}, { 698 | "n": "五月", 699 | "d": 29 700 | }, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, {"n": "九月", "d": 29}, { 701 | "n": "十月", 702 | "d": 30 703 | }, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 29}] 704 | }, { 705 | "y": "1978(戊午年)", 706 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 30}, {"n": "四月", "d": 30}, { 707 | "n": "五月", 708 | "d": 29 709 | }, {"n": "六月", "d": 30}, {"n": "七月", "d": 30}, {"n": "八月", "d": 29}, {"n": "九月", "d": 30}, { 710 | "n": "十月", 711 | "d": 29 712 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 29}] 713 | }, { 714 | "y": "1979(己未年)", 715 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 29}, {"n": "四月", "d": 30}, { 716 | "n": "五月", 717 | "d": 29 718 | }, {"n": "六月", "d": 30}, {"n": "闰六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, { 719 | "n": "九月", 720 | "d": 30 721 | }, {"n": "十月", "d": 29}, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 29}] 722 | }, { 723 | "y": "1980(庚申年)", 724 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 29}, {"n": "四月", "d": 30}, { 725 | "n": "五月", 726 | "d": 29 727 | }, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, {"n": "九月", "d": 30}, { 728 | "n": "十月", 729 | "d": 29 730 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 30}] 731 | }, { 732 | "y": "1981(辛酉年)", 733 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 29}, { 734 | "n": "五月", 735 | "d": 30 736 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, {"n": "九月", "d": 30}, { 737 | "n": "十月", 738 | "d": 29 739 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 30}] 740 | }, { 741 | "y": "1982(壬戌年)", 742 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 30}, {"n": "四月", "d": 29}, { 743 | "n": "闰四月", 744 | "d": 29 745 | }, {"n": "五月", "d": 30}, {"n": "六月", "d": 29}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, { 746 | "n": "九月", 747 | "d": 29 748 | }, {"n": "十月", "d": 30}, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 30}] 749 | }, { 750 | "y": "1983(癸亥年)", 751 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 30}, {"n": "四月", "d": 29}, { 752 | "n": "五月", 753 | "d": 29 754 | }, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 29}, {"n": "九月", "d": 30}, { 755 | "n": "十月", 756 | "d": 29 757 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 30}] 758 | }, { 759 | "y": "1984(甲子年)", 760 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 30}, {"n": "四月", "d": 30}, { 761 | "n": "五月", 762 | "d": 29 763 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "八月", "d": 29}, {"n": "九月", "d": 29}, { 764 | "n": "十月", 765 | "d": 30 766 | }, {"n": "闰十月", "d": 29}, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 30}] 767 | }, { 768 | "y": "1985(乙丑年)", 769 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "三月", "d": 30}, {"n": "四月", "d": 29}, { 770 | "n": "五月", 771 | "d": 30 772 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "八月", "d": 29}, {"n": "九月", "d": 29}, { 773 | "n": "十月", 774 | "d": 30 775 | }, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 776 | }, { 777 | "y": "1986(丙寅年)", 778 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "三月", "d": 30}, {"n": "四月", "d": 29}, { 779 | "n": "五月", 780 | "d": 30 781 | }, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, {"n": "九月", "d": 29}, { 782 | "n": "十月", 783 | "d": 30 784 | }, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 29}] 785 | }, { 786 | "y": "1987(丁卯年)", 787 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 30}, {"n": "四月", "d": 29}, { 788 | "n": "五月", 789 | "d": 30 790 | }, {"n": "六月", "d": 30}, {"n": "闰六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "八月", "d": 30}, { 791 | "n": "九月", 792 | "d": 29 793 | }, {"n": "十月", "d": 30}, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 29}] 794 | }, { 795 | "y": "1988(戊辰年)", 796 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 30}, {"n": "四月", "d": 29}, { 797 | "n": "五月", 798 | "d": 30 799 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "八月", "d": 30}, {"n": "九月", "d": 29}, { 800 | "n": "十月", 801 | "d": 30 802 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 29}] 803 | }, { 804 | "y": "1989(己巳年)", 805 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 29}, {"n": "四月", "d": 30}, { 806 | "n": "五月", 807 | "d": 29 808 | }, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, {"n": "九月", "d": 29}, { 809 | "n": "十月", 810 | "d": 30 811 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 30}] 812 | }, { 813 | "y": "1990(庚午年)", 814 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 29}, { 815 | "n": "五月", 816 | "d": 30 817 | }, {"n": "闰五月", "d": 29}, {"n": "六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "八月", "d": 29}, { 818 | "n": "九月", 819 | "d": 30 820 | }, {"n": "十月", "d": 30}, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 30}] 821 | }, { 822 | "y": "1991(辛未年)", 823 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 29}, { 824 | "n": "五月", 825 | "d": 30 826 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, {"n": "九月", "d": 29}, { 827 | "n": "十月", 828 | "d": 30 829 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 30}] 830 | }, { 831 | "y": "1992(壬申年)", 832 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "三月", "d": 30}, {"n": "四月", "d": 29}, { 833 | "n": "五月", 834 | "d": 29 835 | }, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 29}, {"n": "九月", "d": 30}, { 836 | "n": "十月", 837 | "d": 29 838 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 30}] 839 | }, { 840 | "y": "1993(癸酉年)", 841 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "三月", "d": 30}, {"n": "闰三月", "d": 29}, { 842 | "n": "四月", 843 | "d": 30 844 | }, {"n": "五月", "d": 29}, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 29}, { 845 | "n": "九月", 846 | "d": 30 847 | }, {"n": "十月", "d": 29}, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 29}] 848 | }, { 849 | "y": "1994(甲戌年)", 850 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 30}, {"n": "三月", "d": 30}, {"n": "四月", "d": 29}, { 851 | "n": "五月", 852 | "d": 30 853 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "八月", "d": 29}, {"n": "九月", "d": 29}, { 854 | "n": "十月", 855 | "d": 30 856 | }, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 857 | }, { 858 | "y": "1995(乙亥年)", 859 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "三月", "d": 30}, {"n": "四月", "d": 29}, { 860 | "n": "五月", 861 | "d": 30 862 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "八月", "d": 30}, {"n": "闰八月", "d": 29}, { 863 | "n": "九月", 864 | "d": 29 865 | }, {"n": "十月", "d": 30}, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 866 | }, { 867 | "y": "1996(丙子年)", 868 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 30}, { 869 | "n": "五月", 870 | "d": 29 871 | }, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, {"n": "九月", "d": 30}, { 872 | "n": "十月", 873 | "d": 30 874 | }, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 29}] 875 | }, { 876 | "y": "1997(丁丑年)", 877 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 30}, {"n": "四月", "d": 29}, { 878 | "n": "五月", 879 | "d": 30 880 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "八月", "d": 30}, {"n": "九月", "d": 29}, { 881 | "n": "十月", 882 | "d": 30 883 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 29}] 884 | }, { 885 | "y": "1998(戊寅年)", 886 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 29}, {"n": "四月", "d": 30}, { 887 | "n": "五月", 888 | "d": 29 889 | }, {"n": "闰五月", "d": 29}, {"n": "六月", "d": 30}, {"n": "七月", "d": 30}, {"n": "八月", "d": 29}, { 890 | "n": "九月", 891 | "d": 30 892 | }, {"n": "十月", "d": 30}, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 893 | }, { 894 | "y": "1999(己卯年)", 895 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 29}, {"n": "四月", "d": 30}, { 896 | "n": "五月", 897 | "d": 29 898 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "八月", "d": 29}, {"n": "九月", "d": 30}, { 899 | "n": "十月", 900 | "d": 30 901 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 29}] 902 | }, { 903 | "y": "2000(庚辰年)", 904 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 29}, { 905 | "n": "五月", 906 | "d": 30 907 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, {"n": "九月", "d": 29}, { 908 | "n": "十月", 909 | "d": 30 910 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 29}] 911 | }, { 912 | "y": "2001(辛巳年)", 913 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 30}, { 914 | "n": "闰四月", 915 | "d": 29 916 | }, {"n": "五月", "d": 30}, {"n": "六月", "d": 29}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, { 917 | "n": "九月", 918 | "d": 29 919 | }, {"n": "十月", "d": 30}, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 920 | }, { 921 | "y": "2002(壬午年)", 922 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 30}, { 923 | "n": "五月", 924 | "d": 29 925 | }, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 29}, {"n": "九月", "d": 30}, { 926 | "n": "十月", 927 | "d": 29 928 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 29}] 929 | }, { 930 | "y": "2003(癸未年)", 931 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 30}, { 932 | "n": "五月", 933 | "d": 30 934 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "八月", "d": 29}, {"n": "九月", "d": 29}, { 935 | "n": "十月", 936 | "d": 30 937 | }, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 938 | }, { 939 | "y": "2004(甲申年)", 940 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "闰二月", "d": 29}, {"n": "三月", "d": 30}, { 941 | "n": "四月", 942 | "d": 30 943 | }, {"n": "五月", "d": 29}, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, { 944 | "n": "九月", 945 | "d": 29 946 | }, {"n": "十月", "d": 30}, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 947 | }, { 948 | "y": "2005(乙酉年)", 949 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 30}, { 950 | "n": "五月", 951 | "d": 29 952 | }, {"n": "六月", "d": 30}, {"n": "七月", "d": 30}, {"n": "八月", "d": 29}, {"n": "九月", "d": 30}, { 953 | "n": "十月", 954 | "d": 29 955 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 29}] 956 | }, { 957 | "y": "2006(丙戌年)", 958 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 30}, {"n": "四月", "d": 29}, { 959 | "n": "五月", 960 | "d": 30 961 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "闰七月", "d": 29}, {"n": "八月", "d": 30}, { 962 | "n": "九月", 963 | "d": 30 964 | }, {"n": "十月", "d": 29}, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 30}] 965 | }, { 966 | "y": "2007(丁亥年)", 967 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 29}, {"n": "三月", "d": 30}, {"n": "四月", "d": 29}, { 968 | "n": "五月", 969 | "d": 29 970 | }, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, {"n": "九月", "d": 30}, { 971 | "n": "十月", 972 | "d": 30 973 | }, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 974 | }, { 975 | "y": "2008(戊子年)", 976 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 29}, {"n": "四月", "d": 30}, { 977 | "n": "五月", 978 | "d": 29 979 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "八月", "d": 29}, {"n": "九月", "d": 30}, { 980 | "n": "十月", 981 | "d": 30 982 | }, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 983 | }, { 984 | "y": "2009(己丑年)", 985 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 29}, { 986 | "n": "五月", 987 | "d": 30 988 | }, {"n": "闰五月", "d": 29}, {"n": "六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "八月", "d": 29}, { 989 | "n": "九月", 990 | "d": 30 991 | }, {"n": "十月", "d": 29}, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 30}] 992 | }, { 993 | "y": "2010(庚寅年)", 994 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 30}, {"n": "四月", "d": 29}, { 995 | "n": "五月", 996 | "d": 30 997 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, {"n": "九月", "d": 29}, { 998 | "n": "十月", 999 | "d": 30 1000 | }, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 1001 | }, { 1002 | "y": "2011(辛卯年)", 1003 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 30}, {"n": "四月", "d": 30}, { 1004 | "n": "五月", 1005 | "d": 29 1006 | }, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 29}, {"n": "九月", "d": 30}, { 1007 | "n": "十月", 1008 | "d": 29 1009 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 29}] 1010 | }, { 1011 | "y": "2012(壬辰年)", 1012 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 30}, {"n": "四月", "d": 30}, { 1013 | "n": "闰四月", 1014 | "d": 29 1015 | }, {"n": "五月", "d": 30}, {"n": "六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "八月", "d": 29}, { 1016 | "n": "九月", 1017 | "d": 30 1018 | }, {"n": "十月", "d": 29}, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 29}] 1019 | }, { 1020 | "y": "2013(癸巳年)", 1021 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 30}, {"n": "四月", "d": 29}, { 1022 | "n": "五月", 1023 | "d": 30 1024 | }, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, {"n": "九月", "d": 29}, { 1025 | "n": "十月", 1026 | "d": 30 1027 | }, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 1028 | }, { 1029 | "y": "2014(甲午年)", 1030 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 30}, { 1031 | "n": "五月", 1032 | "d": 29 1033 | }, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, {"n": "九月", "d": 30}, { 1034 | "n": "闰九月", 1035 | "d": 29 1036 | }, {"n": "十月", "d": 30}, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 1037 | }, { 1038 | "y": "2015(乙未年)", 1039 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 29}, { 1040 | "n": "五月", 1041 | "d": 30 1042 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "八月", "d": 30}, {"n": "九月", "d": 30}, { 1043 | "n": "十月", 1044 | "d": 29 1045 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 29}] 1046 | }, { 1047 | "y": "2016(丙申年)", 1048 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 30}, {"n": "四月", "d": 29}, { 1049 | "n": "五月", 1050 | "d": 29 1051 | }, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, {"n": "九月", "d": 30}, { 1052 | "n": "十月", 1053 | "d": 29 1054 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 30}] 1055 | }, { 1056 | "y": "2017(丁酉年)", 1057 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 30}, { 1058 | "n": "五月", 1059 | "d": 29 1060 | }, {"n": "六月", "d": 29}, {"n": "闰六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, { 1061 | "n": "九月", 1062 | "d": 29 1063 | }, {"n": "十月", "d": 30}, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 30}] 1064 | }, { 1065 | "y": "2018(戊戌年)", 1066 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 30}, { 1067 | "n": "五月", 1068 | "d": 29 1069 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "八月", "d": 29}, {"n": "九月", "d": 30}, { 1070 | "n": "十月", 1071 | "d": 29 1072 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 30}] 1073 | }, { 1074 | "y": "2019(己亥年)", 1075 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 30}, {"n": "四月", "d": 29}, { 1076 | "n": "五月", 1077 | "d": 30 1078 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, {"n": "九月", "d": 29}, { 1079 | "n": "十月", 1080 | "d": 29 1081 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 30}] 1082 | }, { 1083 | "y": "2020(庚子年)", 1084 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "三月", "d": 30}, {"n": "四月", "d": 30}, { 1085 | "n": "闰四月", 1086 | "d": 29 1087 | }, {"n": "五月", "d": 30}, {"n": "六月", "d": 29}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, { 1088 | "n": "九月", 1089 | "d": 29 1090 | }, {"n": "十月", "d": 30}, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 1091 | }, { 1092 | "y": "2021(辛丑年)", 1093 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "三月", "d": 30}, {"n": "四月", "d": 29}, { 1094 | "n": "五月", 1095 | "d": 30 1096 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "八月", "d": 29}, {"n": "九月", "d": 30}, { 1097 | "n": "十月", 1098 | "d": 29 1099 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 29}] 1100 | }, { 1101 | "y": "2022(壬寅年)", 1102 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 30}, {"n": "四月", "d": 29}, { 1103 | "n": "五月", 1104 | "d": 30 1105 | }, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, {"n": "九月", "d": 29}, { 1106 | "n": "十月", 1107 | "d": 30 1108 | }, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 1109 | }, { 1110 | "y": "2023(癸卯年)", 1111 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "闰二月", "d": 29}, {"n": "三月", "d": 29}, { 1112 | "n": "四月", 1113 | "d": 30 1114 | }, {"n": "五月", "d": 30}, {"n": "六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "八月", "d": 30}, { 1115 | "n": "九月", 1116 | "d": 29 1117 | }, {"n": "十月", "d": 30}, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 1118 | }, { 1119 | "y": "2024(甲辰年)", 1120 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 29}, { 1121 | "n": "五月", 1122 | "d": 30 1123 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "八月", "d": 30}, {"n": "九月", "d": 29}, { 1124 | "n": "十月", 1125 | "d": 30 1126 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 29}] 1127 | }, { 1128 | "y": "2025(乙巳年)", 1129 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 30}, {"n": "四月", "d": 29}, { 1130 | "n": "五月", 1131 | "d": 29 1132 | }, {"n": "六月", "d": 30}, {"n": "闰六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "八月", "d": 29}, { 1133 | "n": "九月", 1134 | "d": 30 1135 | }, {"n": "十月", "d": 30}, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 29}] 1136 | }, { 1137 | "y": "2026(丙午年)", 1138 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 30}, {"n": "四月", "d": 29}, { 1139 | "n": "五月", 1140 | "d": 29 1141 | }, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 29}, {"n": "九月", "d": 30}, { 1142 | "n": "十月", 1143 | "d": 30 1144 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 29}] 1145 | }, { 1146 | "y": "2027(丁未年)", 1147 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 30}, { 1148 | "n": "五月", 1149 | "d": 29 1150 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "八月", "d": 29}, {"n": "九月", "d": 29}, { 1151 | "n": "十月", 1152 | "d": 30 1153 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 29}] 1154 | }, { 1155 | "y": "2028(戊申年)", 1156 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 30}, {"n": "三月", "d": 30}, {"n": "四月", "d": 29}, { 1157 | "n": "五月", 1158 | "d": 30 1159 | }, {"n": "闰五月", "d": 29}, {"n": "六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "八月", "d": 29}, { 1160 | "n": "九月", 1161 | "d": 29 1162 | }, {"n": "十月", "d": 30}, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 29}] 1163 | }, { 1164 | "y": "2029(己酉年)", 1165 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 30}, { 1166 | "n": "五月", 1167 | "d": 29 1168 | }, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, {"n": "九月", "d": 29}, { 1169 | "n": "十月", 1170 | "d": 29 1171 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 30}] 1172 | }, { 1173 | "y": "2030(庚戌年)", 1174 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 30}, { 1175 | "n": "五月", 1176 | "d": 30 1177 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "八月", "d": 29}, {"n": "九月", "d": 30}, { 1178 | "n": "十月", 1179 | "d": 29 1180 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 29}] 1181 | }, { 1182 | "y": "2031(辛亥年)", 1183 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "三月", "d": 30}, {"n": "闰三月", "d": 29}, { 1184 | "n": "四月", 1185 | "d": 30 1186 | }, {"n": "五月", "d": 29}, {"n": "六月", "d": 30}, {"n": "七月", "d": 30}, {"n": "八月", "d": 29}, { 1187 | "n": "九月", 1188 | "d": 30 1189 | }, {"n": "十月", "d": 29}, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 29}] 1190 | }, { 1191 | "y": "2032(壬子年)", 1192 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 29}, {"n": "四月", "d": 30}, { 1193 | "n": "五月", 1194 | "d": 29 1195 | }, {"n": "六月", "d": 30}, {"n": "七月", "d": 30}, {"n": "八月", "d": 29}, {"n": "九月", "d": 30}, { 1196 | "n": "十月", 1197 | "d": 30 1198 | }, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 1199 | }, { 1200 | "y": "2033(癸丑年)", 1201 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 29}, { 1202 | "n": "五月", 1203 | "d": 30 1204 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "闰七月", "d": 29}, {"n": "八月", "d": 30}, { 1205 | "n": "九月", 1206 | "d": 30 1207 | }, {"n": "十月", "d": 30}, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 1208 | }, { 1209 | "y": "2034(甲寅年)", 1210 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 29}, { 1211 | "n": "五月", 1212 | "d": 30 1213 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "八月", "d": 29}, {"n": "九月", "d": 30}, { 1214 | "n": "十月", 1215 | "d": 30 1216 | }, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 1217 | }, { 1218 | "y": "2035(乙卯年)", 1219 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 30}, {"n": "四月", "d": 29}, { 1220 | "n": "五月", 1221 | "d": 29 1222 | }, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 29}, {"n": "九月", "d": 30}, { 1223 | "n": "十月", 1224 | "d": 30 1225 | }, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 1226 | }, { 1227 | "y": "2036(丙辰年)", 1228 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 30}, { 1229 | "n": "五月", 1230 | "d": 29 1231 | }, {"n": "六月", "d": 29}, {"n": "闰六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 29}, { 1232 | "n": "九月", 1233 | "d": 30 1234 | }, {"n": "十月", "d": 29}, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 30}] 1235 | }, { 1236 | "y": "2037(丁巳年)", 1237 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 30}, { 1238 | "n": "五月", 1239 | "d": 29 1240 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "八月", "d": 29}, {"n": "九月", "d": 29}, { 1241 | "n": "十月", 1242 | "d": 30 1243 | }, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 1244 | }, { 1245 | "y": "2038(戊午年)", 1246 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 30}, { 1247 | "n": "五月", 1248 | "d": 29 1249 | }, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, {"n": "九月", "d": 29}, { 1250 | "n": "十月", 1251 | "d": 29 1252 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 29}] 1253 | }, { 1254 | "y": "2039(己未年)", 1255 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 30}, { 1256 | "n": "五月", 1257 | "d": 30 1258 | }, {"n": "闰五月", "d": 29}, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, { 1259 | "n": "九月", 1260 | "d": 29 1261 | }, {"n": "十月", "d": 30}, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 29}] 1262 | }, { 1263 | "y": "2040(庚申年)", 1264 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 30}, {"n": "四月", "d": 30}, { 1265 | "n": "五月", 1266 | "d": 29 1267 | }, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, {"n": "九月", "d": 30}, { 1268 | "n": "十月", 1269 | "d": 29 1270 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 29}] 1271 | }, { 1272 | "y": "2041(辛酉年)", 1273 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 30}, { 1274 | "n": "五月", 1275 | "d": 29 1276 | }, {"n": "六月", "d": 30}, {"n": "七月", "d": 30}, {"n": "八月", "d": 29}, {"n": "九月", "d": 30}, { 1277 | "n": "十月", 1278 | "d": 30 1279 | }, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 1280 | }, { 1281 | "y": "2042(壬戌年)", 1282 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "闰二月", "d": 29}, {"n": "三月", "d": 29}, { 1283 | "n": "四月", 1284 | "d": 30 1285 | }, {"n": "五月", "d": 29}, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, { 1286 | "n": "九月", 1287 | "d": 30 1288 | }, {"n": "十月", "d": 29}, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 30}] 1289 | }, { 1290 | "y": "2043(癸亥年)", 1291 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "三月", "d": 29}, {"n": "四月", "d": 29}, { 1292 | "n": "五月", 1293 | "d": 30 1294 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, {"n": "九月", "d": 30}, { 1295 | "n": "十月", 1296 | "d": 29 1297 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 30}] 1298 | }, { 1299 | "y": "2044(甲子年)", 1300 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 30}, {"n": "四月", "d": 29}, { 1301 | "n": "五月", 1302 | "d": 29 1303 | }, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "闰七月", "d": 29}, {"n": "八月", "d": 30}, { 1304 | "n": "九月", 1305 | "d": 29 1306 | }, {"n": "十月", "d": 30}, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 30}] 1307 | }, { 1308 | "y": "2045(乙丑年)", 1309 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 30}, {"n": "四月", "d": 29}, { 1310 | "n": "五月", 1311 | "d": 29 1312 | }, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 29}, {"n": "九月", "d": 30}, { 1313 | "n": "十月", 1314 | "d": 29 1315 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 30}] 1316 | }, { 1317 | "y": "2046(丙寅年)", 1318 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 30}, {"n": "四月", "d": 29}, { 1319 | "n": "五月", 1320 | "d": 30 1321 | }, {"n": "六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "八月", "d": 29}, {"n": "九月", "d": 29}, { 1322 | "n": "十月", 1323 | "d": 30 1324 | }, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 1325 | }, { 1326 | "y": "2047(丁卯年)", 1327 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 30}, {"n": "四月", "d": 30}, { 1328 | "n": "五月", 1329 | "d": 29 1330 | }, {"n": "闰五月", "d": 30}, {"n": "六月", "d": 29}, {"n": "七月", "d": 30}, {"n": "八月", "d": 29}, { 1331 | "n": "九月", 1332 | "d": 29 1333 | }, {"n": "十月", "d": 30}, {"n": "冬月", "d": 29}, {"n": "腊月", "d": 30}] 1334 | }, { 1335 | "y": "2048(戊辰年)", 1336 | "m": [{"n": "正月", "d": 29}, {"n": "二月", "d": 30}, {"n": "三月", "d": 30}, {"n": "四月", "d": 29}, { 1337 | "n": "五月", 1338 | "d": 30 1339 | }, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, {"n": "九月", "d": 29}, { 1340 | "n": "十月", 1341 | "d": 29 1342 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 29}] 1343 | }, { 1344 | "y": "2049(己巳年)", 1345 | "m": [{"n": "正月", "d": 30}, {"n": "二月", "d": 29}, {"n": "三月", "d": 30}, {"n": "四月", "d": 29}, { 1346 | "n": "五月", 1347 | "d": 30 1348 | }, {"n": "六月", "d": 30}, {"n": "七月", "d": 29}, {"n": "八月", "d": 30}, {"n": "九月", "d": 30}, { 1349 | "n": "十月", 1350 | "d": 29 1351 | }, {"n": "冬月", "d": 30}, {"n": "腊月", "d": 29}] 1352 | }]; 1353 | // 农历月份 1354 | const nlMonth = ["正月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "冬月", "腊月"]; 1355 | // 农历天份 29 1356 | const nlDay1 = ["初一", "初二", "初三", "初四", "初五", "初六", "初七", "初八", "初九", "初十", "十一", "十二", "十三", "十四", "十五", "十六", "十七", "十八", "十九", "二十", "廿一", "廿二", "廿三", "廿四", "廿五", "廿六", "廿七", "廿八", "廿九"]; 1357 | // 农历天份 30 1358 | const nlDay2 = ["初一", "初二", "初三", "初四", "初五", "初六", "初七", "初八", "初九", "初十", "十一", "十二", "十三", "十四", "十五", "十六", "十七", "十八", "十九", "二十", "廿一", "廿二", "廿三", "廿四", "廿五", "廿六", "廿七", "廿八", "廿九", "三十"]; 1359 | 1360 | // 公历日期 1900年 - 今天 1361 | const glYear = []; 1362 | for (let i = 1900; i <= 2049; i++) { 1363 | glYear.push(i) 1364 | } 1365 | // 公历月份 1366 | const glMonth = []; 1367 | for (let i = 1; i <= 12; i++) { 1368 | glMonth.push(i < 10 ? ('0' + i) : i) 1369 | } 1370 | // 公历天份 28天 1371 | const glDay28 = []; 1372 | for (let i = 1; i <= 28; i++) { 1373 | glDay28.push(i < 10 ? ('0' + i) : i) 1374 | } 1375 | // 公历天份 29天 1376 | const glDay29 = []; 1377 | for (let i = 1; i <= 29; i++) { 1378 | glDay29.push(i < 10 ? ('0' + i) : i) 1379 | } 1380 | // 公历天份 30天 1381 | const glDay30 = []; 1382 | for (let i = 1; i <= 30; i++) { 1383 | glDay30.push(i < 10 ? ('0' + i) : i) 1384 | } 1385 | // 公历天份 31天 1386 | const glDay31 = []; 1387 | for (let i = 1; i <= 31; i++) { 1388 | glDay31.push(i < 10 ? ('0' + i) : i) 1389 | } 1390 | 1391 | /** 1392 | * 公历年月日处理 1393 | */ 1394 | function glDateHandler(arr) { 1395 | let indexArr = arr 1396 | let data = { 1397 | "yearCol": glYear, 1398 | "monthCol": glMonth, 1399 | "dayCol": [] 1400 | } 1401 | if (arr[1] == 0 || arr[1] == 2 || arr[1] == 4 || arr[1] == 6 || arr[1] == 7 || arr[1] == 9 || arr[1] == 11) 1402 | data.dayCol = glDay31 1403 | else if (arr[1] != 1) 1404 | data.dayCol = glDay30 1405 | else { 1406 | let year = glYear[arr[0]]; 1407 | data.dayCol = glDay28; 1408 | // 判断闰年 1409 | if ((year % 4 == 0 && year % 100 != 0) || year % 400 == 0) { 1410 | data.dayCol = glDay29; 1411 | } 1412 | } 1413 | return data; 1414 | } 1415 | 1416 | /** 1417 | * 农历年月日处理 1418 | */ 1419 | function nlDateHandler(arr) { 1420 | let indexArr = arr 1421 | let data = { 1422 | "yearCol": [], 1423 | "monthCol": [], 1424 | "dayCol": [] 1425 | } 1426 | for (let i = 0; i < nlDate.length; i++) { 1427 | data.yearCol.push(nlDate[i].y) 1428 | if (indexArr[0] == i) { 1429 | for (let j = 0; j < nlDate[i].m.length; j++) { 1430 | data.monthCol.push(nlDate[i].m[j].n) 1431 | if (indexArr[1] == j) { 1432 | if (nlDate[i].m[j].d == 29) 1433 | data.dayCol = nlDay1 1434 | else 1435 | data.dayCol = nlDay2 1436 | } 1437 | } 1438 | } 1439 | } 1440 | return data; 1441 | } 1442 | 1443 | /** 1444 | * 公历月日处理 不带年份 1445 | */ 1446 | function glDateHandlerNoYear(arr) { 1447 | let indexArr = arr 1448 | let data = { 1449 | "monthCol": [], 1450 | "dayCol": [] 1451 | } 1452 | data.monthCol = glMonth 1453 | if (arr[0] == 0 || arr[0] == 2 || arr[0] == 4 || arr[0] == 6 || arr[0] == 7 || arr[0] == 9 || arr[0] == 11) 1454 | data.dayCol = glDay31 1455 | else if (arr[0] != 1) 1456 | data.dayCol = glDay30 1457 | else 1458 | data.dayCol = glDay29 1459 | return data; 1460 | } 1461 | 1462 | /** 1463 | * 农历月日处理 不带年份 1464 | */ 1465 | function nlDateHandlerNoYear() { 1466 | let data = { 1467 | "monthCol": nlMonth, 1468 | "dayCol": nlDay2 1469 | } 1470 | return data; 1471 | } 1472 | 1473 | const formatTime = date => { 1474 | const year = date.getFullYear() 1475 | const month = date.getMonth() + 1 1476 | const day = date.getDate() 1477 | return [year, month, day].map(formatNumber).join('-') 1478 | } 1479 | 1480 | const formatNumber = n => { 1481 | n = n.toString() 1482 | return n[1] ? n : '0' + n 1483 | } 1484 | 1485 | Component({ 1486 | behaviors: [], 1487 | properties: { 1488 | // 控制是否显示日期选择组件的flag 1489 | showDatePickerPlus: { 1490 | type: Boolean, // 类型(必填),目前接受的类型包括:String, Number, Boolean, Object, Array, null(表示任意类型) 1491 | value: false, // 属性初始值(可选),如果未指定则会根据类型选择一个 1492 | // 属性被改变时执行的函数(可选),也可以写成在methods段中定义的方法名字符串, 如:'_propertyChange' 1493 | observer: function (newVal, oldVal) { 1494 | if (newVal != oldVal) { 1495 | if (newVal) 1496 | this.showDatePickerPlus() 1497 | else 1498 | this.closeDatePickerPlus() 1499 | } 1500 | } 1501 | }, 1502 | initDate: { 1503 | type: String, 1504 | value: formatTime(new Date()) 1505 | } 1506 | }, 1507 | // 私有数据,可用于模版渲染 1508 | data: { 1509 | datePickerAttr: { 1510 | showYear: 1, 1511 | dateType: 1, 1512 | }, 1513 | nlDateMutiIndex: [90, 0, 0], 1514 | nlDateNoYearMutiIndex: [0, 0], 1515 | glDateMutiIndex: [90, 0, 0], 1516 | glDateNoYearMutiIndex: [0, 0], 1517 | glYears: [], 1518 | glMonths: [], 1519 | glMonthsNoYear: [], 1520 | glDays: [], 1521 | glDaysNoYear: [], 1522 | nlYears: [], 1523 | nlMonths: [], 1524 | nlMonthsNoYear: [], 1525 | nlDays: [], 1526 | nlDaysNoYear: [], 1527 | animationData: {},// 动画 1528 | showDatePickerPlus: false, 1529 | }, 1530 | 1531 | // 生命周期函数,可以为函数,或一个在methods段中定义的方法名 1532 | attached: function () { 1533 | /** 1534 | * 初始化阴阳历数据 1535 | */ 1536 | let nlDate = nlDateHandler(this.data.nlDateMutiIndex); 1537 | let nlDateNoYear = nlDateHandlerNoYear(this.data.nlDateNoYearMutiIndex); 1538 | let glDateMutiIndex = this.data.glDateMutiIndex; 1539 | let glDateNoYearMutiIndex = this.data.glDateNoYearMutiIndex; 1540 | let [y,m,d] = this.data.initDate.split('-'); 1541 | glDateMutiIndex = [glYear.indexOf(parseInt(y)), parseInt(m) - 1, parseInt(d) - 1]; 1542 | let glDate = glDateHandler(glDateMutiIndex); 1543 | glDateNoYearMutiIndex = [parseInt(m) - 1, parseInt(d) - 1]; 1544 | let glDateNoYear = glDateHandlerNoYear(glDateNoYearMutiIndex); 1545 | this.setData({ 1546 | glDateMutiIndex: glDateMutiIndex, 1547 | glDateNoYearMutiIndex: glDateNoYearMutiIndex, 1548 | glYears: glDate.yearCol, 1549 | glMonths: glDate.monthCol, 1550 | glDays: glDate.dayCol, 1551 | glMonthsNoYear: glDateNoYear.monthCol, 1552 | glDaysNoYear: glDateNoYear.dayCol, 1553 | nlYears: nlDate.yearCol, 1554 | nlMonths: nlDate.monthCol, 1555 | nlDays: nlDate.dayCol, 1556 | nlMonthsNoYear: nlDateNoYear.monthCol, 1557 | nlDaysNoYear: nlDateNoYear.dayCol, 1558 | }) 1559 | }, 1560 | moved: function () { 1561 | }, 1562 | detached: function () { 1563 | }, 1564 | 1565 | methods: { 1566 | /** 1567 | * 切换阴阳历类型 1568 | */ 1569 | toggleDateType: function () { 1570 | let dateType = this.data.datePickerAttr.dateType == 1 ? 2 : 1; 1571 | this.setData({ 1572 | ['datePickerAttr.dateType']: dateType 1573 | }) 1574 | }, 1575 | /** 1576 | * 切换是否显示年份 1577 | */ 1578 | toggleShowYear: function () { 1579 | let showYear = this.data.datePickerAttr.showYear == 1 ? 0 : 1; 1580 | this.setData({ 1581 | ['datePickerAttr.showYear']: showYear 1582 | }) 1583 | }, 1584 | /** 1585 | * 农历数据改变监听 1586 | */ 1587 | bindDateNl: function (e) { 1588 | let value = e.detail.value; 1589 | let data = nlDateHandler(value); 1590 | this.setData({ 1591 | nlDateMutiIndex: value, 1592 | nlYears: data.yearCol, 1593 | nlMonths: data.monthCol, 1594 | nlDays: data.dayCol 1595 | }) 1596 | }, 1597 | /** 1598 | * 农历不带年份数据改变监听 1599 | */ 1600 | bindDateNlNoYear: function (e) { 1601 | let value = e.detail.value; 1602 | let data = nlDateHandlerNoYear(value); 1603 | this.setData({ 1604 | nlDateNoYearMutiIndex: value, 1605 | nlMonthsNoYear: data.monthCol, 1606 | nlDaysNoYear: data.dayCol 1607 | }) 1608 | }, 1609 | /** 1610 | * 公历数据改变监听 1611 | */ 1612 | bindDateGl: function (e) { 1613 | let value = e.detail.value; 1614 | let data = glDateHandler(value); 1615 | this.setData({ 1616 | glDateMutiIndex: value, 1617 | glYears: data.yearCol, 1618 | glMonths: data.monthCol, 1619 | glDays: data.dayCol, 1620 | }) 1621 | }, 1622 | /** 1623 | * 公历不带年份数据改变监听 1624 | */ 1625 | bindDateGlNoYear: function (e) { 1626 | let value = e.detail.value; 1627 | let data = glDateHandlerNoYear(value); 1628 | this.setData({ 1629 | glDateNoYearMutiIndex: value, 1630 | glMonthsNoYear: data.monthCol, 1631 | glDaysNoYear: data.dayCol 1632 | }) 1633 | }, 1634 | /** 1635 | * 选择日期->确定 1636 | */ 1637 | submitSelectDate: function () { 1638 | let date = ''; 1639 | if (this.data.datePickerAttr.dateType == 1) { 1640 | date = this.data.datePickerAttr.showYear == 1 ? (this.data.glYears[this.data.glDateMutiIndex[0]] + '-' + this.data.glMonths[this.data.glDateMutiIndex[1]] + '-' + this.data.glDays[this.data.glDateMutiIndex[2]]) : (this.data.glMonths[this.data.glDateNoYearMutiIndex[0]] + '-' + this.data.glDaysNoYear[this.data.glDateNoYearMutiIndex[1]]) 1641 | } 1642 | else { 1643 | date = this.data.datePickerAttr.showYear == 1 ? (this.data.nlYears[this.data.nlDateMutiIndex[0]] + this.data.nlMonths[this.data.nlDateMutiIndex[1]] + this.data.nlDays[this.data.nlDateMutiIndex[2]]) : (this.data.nlMonthsNoYear[this.data.nlDateNoYearMutiIndex[0]] + this.data.nlDaysNoYear[this.data.nlDateNoYearMutiIndex[1]]) 1644 | } 1645 | this.closeDatePickerPlus(); 1646 | var myEventDetail = { 1647 | dateStr: date, 1648 | showYear: this.data.datePickerAttr.showYear == 1 ? true : false, 1649 | dateType: this.data.datePickerAttr.dateType == 1 ? '公历' : '农历' 1650 | } // detail对象,提供给事件监听函数 1651 | var myEventOption = {} // 触发事件的选项 1652 | this.triggerEvent('submit', myEventDetail, myEventOption) 1653 | }, 1654 | // 显示日期选择控件 1655 | showDatePickerPlus: function () { 1656 | var animation = wx.createAnimation({ 1657 | duration: 160, 1658 | timingFunction: 'linear', 1659 | delay: 0 1660 | }) 1661 | this.animation = animation 1662 | 1663 | animation.translateY(280).step({duration: 0}) 1664 | 1665 | this.setData({ 1666 | animationData: animation.export(), 1667 | showDatePickerPlus: true 1668 | }) 1669 | setTimeout(function () { 1670 | animation.translateY(0).step() 1671 | this.setData({ 1672 | animationData: animation.export(), 1673 | }) 1674 | }.bind(this), 160) 1675 | }, 1676 | // 隐藏日期选择控件 1677 | closeDatePickerPlus: function () { 1678 | this.animation.translateY(280).step() 1679 | this.setData({ 1680 | animationData: this.animation.export(), 1681 | }) 1682 | setTimeout(function () { 1683 | this.setData({ 1684 | showDatePickerPlus: false, 1685 | }) 1686 | }.bind(this), 120) 1687 | }, 1688 | onMyButtonTap: function () { 1689 | this.setData({ 1690 | // 更新属性和数据的方法与更新页面数据的方法类似 1691 | }) 1692 | }, 1693 | _propertyChange: function (newVal, oldVal) { 1694 | 1695 | } 1696 | } 1697 | 1698 | }) -------------------------------------------------------------------------------- /datepicker-plus/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } -------------------------------------------------------------------------------- /datepicker-plus/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 公历 7 | 农历 8 | 9 | {{ datePickerAttr.showYear == 1 ? '隐藏年份' : '显示年份' }} 10 | 11 | 确定 12 | 13 | 14 | 15 | 16 | {{item}}年 17 | 18 | 19 | {{item}}月 20 | 21 | 22 | {{item}}日 23 | 24 | 25 | 26 | 27 | {{item}} 28 | 29 | 30 | {{item}} 31 | 32 | 33 | {{item}} 34 | 35 | 36 | 37 | 38 | {{item}}月 39 | 40 | 41 | {{item}}日 42 | 43 | 44 | 45 | 46 | {{item}} 47 | 48 | 49 | {{item}} 50 | 51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /datepicker-plus/index.wxss: -------------------------------------------------------------------------------- 1 | /* 日期选择器 */ 2 | .modal-mask { 3 | width: 100%; 4 | height: 100%; 5 | position: fixed; 6 | top: 0; 7 | left: 0; 8 | background: #000; 9 | opacity: 0.3; 10 | overflow: hidden; 11 | z-index: 500; 12 | color: #fff; 13 | } 14 | .datepicker { 15 | position: fixed; 16 | bottom: 0; 17 | left: 0; 18 | width: 100%; 19 | background: #fff; 20 | z-index: 501; 21 | } 22 | .datepicker-header { 23 | display: flex; 24 | height: 80rpx; 25 | background-color: #e9e9e9; 26 | color: #2f80f2; 27 | align-items: center; 28 | justify-content: space-between; 29 | font-size: 28rpx; 30 | } 31 | .datepicker-header .left { 32 | height: 100%; 33 | margin-left: 30rpx; 34 | display: flex; 35 | align-items: center; 36 | } 37 | .datepicker-header .right { 38 | margin-right: 40rpx; 39 | } 40 | .datetype-toggle { 41 | background: #fff; 42 | border: 1rpx solid #2f80f2; 43 | display: flex; 44 | margin-right: 50rpx; 45 | } 46 | .datetype-item { 47 | width: 80rpx; 48 | height: 50rpx; 49 | display: flex; 50 | align-items: center; 51 | justify-content: center; 52 | } 53 | .datetype-select { 54 | background: #2f80f2; 55 | color: #fff; 56 | } 57 | .datepicker-content { 58 | height: 100%; 59 | } 60 | picker-view { 61 | width: 100%; 62 | height: 480rpx; 63 | } 64 | picker-view-column { 65 | text-align:center; 66 | line-height: 80rpx; 67 | color: #222; 68 | font-size: 28rpx; 69 | } 70 | -------------------------------------------------------------------------------- /pages/index/index.js: -------------------------------------------------------------------------------- 1 | Page({ 2 | data: { 3 | show: false, 4 | dateInfo: {} 5 | }, 6 | submit: function(e) { 7 | console.log(e); 8 | console.log('日期类型:' + e.detail.dateType) 9 | console.log('是否显示年份:' + e.detail.showYear) 10 | console.log('日期字符串:' + e.detail.dateStr) 11 | this.setData({ 12 | dateInfo: e.detail 13 | }) 14 | }, 15 | showDatePickerPlus: function() { 16 | this.setData({ 17 | show: true 18 | }) 19 | }, 20 | onLoad: function () { 21 | 22 | }, 23 | }) 24 | -------------------------------------------------------------------------------- /pages/index/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "datepicker-plus": "/datepicker-plus/index" 4 | } 5 | } -------------------------------------------------------------------------------- /pages/index/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 是否显示年份:{{dateInfo.showYear}} 6 | 日期类型:{{dateInfo.dateType}} 7 | 日期:{{dateInfo.dateStr}} 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /pages/index/index.wxss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenjianzhonglol/datepicker-plus/596727283a570064e4a46565766bebef76bbb290/pages/index/index.wxss -------------------------------------------------------------------------------- /pages/logs/logs.js: -------------------------------------------------------------------------------- 1 | //logs.js 2 | const util = require('../../utils/util.js') 3 | 4 | Page({ 5 | data: { 6 | logs: [] 7 | }, 8 | onLoad: function () { 9 | this.setData({ 10 | logs: (wx.getStorageSync('logs') || []).map(log => { 11 | return util.formatTime(new Date(log)) 12 | }) 13 | }) 14 | } 15 | }) 16 | -------------------------------------------------------------------------------- /pages/logs/logs.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "查看启动日志" 3 | } -------------------------------------------------------------------------------- /pages/logs/logs.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | {{index + 1}}. {{log}} 5 | 6 | 7 | -------------------------------------------------------------------------------- /pages/logs/logs.wxss: -------------------------------------------------------------------------------- 1 | .log-list { 2 | display: flex; 3 | flex-direction: column; 4 | padding: 40rpx; 5 | } 6 | .log-item { 7 | margin: 10rpx; 8 | } 9 | -------------------------------------------------------------------------------- /project.config.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "项目配置文件。", 3 | "setting": { 4 | "urlCheck": true, 5 | "es6": true, 6 | "postcss": true, 7 | "minified": true, 8 | "newFeature": true 9 | }, 10 | "compileType": "miniprogram", 11 | "libVersion": "1.9.91", 12 | "appid": "touristappid", 13 | "projectname": "datepicker-plus", 14 | "condition": { 15 | "search": { 16 | "current": -1, 17 | "list": [] 18 | }, 19 | "conversation": { 20 | "current": -1, 21 | "list": [] 22 | }, 23 | "game": { 24 | "currentL": -1, 25 | "list": [] 26 | }, 27 | "miniprogram": { 28 | "current": -1, 29 | "list": [] 30 | } 31 | } 32 | } -------------------------------------------------------------------------------- /utils/util.js: -------------------------------------------------------------------------------- 1 | const formatTime = date => { 2 | const year = date.getFullYear() 3 | const month = date.getMonth() + 1 4 | const day = date.getDate() 5 | const hour = date.getHours() 6 | const minute = date.getMinutes() 7 | const second = date.getSeconds() 8 | 9 | return [year, month, day].map(formatNumber).join('/') + ' ' + [hour, minute, second].map(formatNumber).join(':') 10 | } 11 | 12 | const formatNumber = n => { 13 | n = n.toString() 14 | return n[1] ? n : '0' + n 15 | } 16 | 17 | module.exports = { 18 | formatTime: formatTime 19 | } 20 | --------------------------------------------------------------------------------