![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-09-25 07:04 |
47,813 topics / 349,918 posts / today 1 new / 48,274 members |
| DOS批处理 & 脚本技术(批处理室) » Batch calendar |
| Printable Version 4,646 / 23 |
| Floor16 gne3 | Posted 2007-02-21 09:03 |
| 高级用户 Posts 252 Credits 526 | |
|
What Brother 12th Floor said, I'm a bit confused. Hehe
|
|
| Floor17 mmyy525 | Posted 2007-03-05 00:33 |
| 初级用户 Posts 10 Credits 26 | |
|
Bump
|
|
| Floor18 tyh | Posted 2007-04-24 10:28 |
| 初级用户 Posts 43 Credits 80 | |
|
Not bad. But didn't understand. Hehe
|
|
| Floor19 wudixin96 | Posted 2007-04-24 10:39 |
| 银牌会员 Posts 931 Credits 1,928 | |
|
That's really well written.
|
|
| Floor20 my3439955 | Posted 2007-04-24 11:01 |
| 中级用户 Posts 99 Credits 272 | |
|
Support the building owner to add the function of querying dates for any year.
Believe that if you know what day of the week the first day of a year is, this function can be realized. For any year year, the calculation formula for what day of the week the first day is is (year + (year - 1) / 4 - (year - 1) / 100 + (year - 1) / 400) % 7 Note that the format here "/" is division, not the remainder, and "%" is the modulo operation. As long as the remainder This year is 2007, then the first day can be calculated to be Monday |
|
| Floor21 my3439955 | Posted 2007-04-24 12:36 |
| 中级用户 Posts 99 Credits 272 | |
|
By adding new code in the building code, different years can be displayed. Except for BC, it should be fine. All changes are within comments, and the rest of the parts are unchanged
[ Last edited by my3439955 on 2007-4-24 at 12:39 PM ] |
|
| Floor22 lixiaodong789 | Posted 2007-05-04 18:39 |
| 新手上路 Posts 2 Credits 4 | |
| Floor23 yeke | Posted 2007-05-04 20:51 |
| 初级用户 Posts 13 Credits 25 | |
| Floor24 sack | Posted 2007-05-14 04:48 |
| 新手上路 Posts 3 Credits 8 | |
|
I just realized now that I'm quite inexperienced
|
|
| Prev 1 2 |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |