|
sunyao
初级用户
 
积分 141
发帖 60
注册 2006-10-28 来自 天津
状态 离线
|
『楼 主』:
如何更改系统时间的输出格式??
使用 LLM 解释/回答一下
比如输出2006年12月1日 星期五 15:30:56
echo %date% %time%
显示星期在前+2006/12/01+15:30:56
For example, output December 1, 2006 Friday 15:30:56
echo %date% %time%
Display the day of the week first + 2006/12/01 + 15:30:56
|
|
2006-12-2 03:34 |
|
|
redtek
金牌会员
     
积分 2902
发帖 1147
注册 2006-9-21
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
我记着 Win2000 的 %date% 是: "星期几 日期"
Win2003 的 %date% 是: "日期 星期几"
MS-DOS 6.22 的 echo.|date 输出是英文的: "星期几 日期" , 例如:"Tue 11-20-2006".
Last edited by redtek on 2006-12-1 at 03:02 PM ]
I remember that for Win2000, %date% is: "Day of the week Date"
For Win2003, %date% is: "Date Day of the week"
For MS-DOS 6.22, the output of echo.|date is in English: "Day of the week Date", for example: "Tue 11-20-2006".
Last edited by redtek on 2006-12-1 at 03:02 PM ]
|

Redtek,一个永远在网上流浪的人……
_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._ |
|
2006-12-2 03:58 |
|
|
sunyao
初级用户
 
积分 141
发帖 60
注册 2006-10-28 来自 天津
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
没错 能控制它如何输出吗
Yes, can you control how it outputs?
|
|
2006-12-2 04:01 |
|
|
sunyao
初级用户
 
积分 141
发帖 60
注册 2006-10-28 来自 天津
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
能不能不管在那个系统中
都按2006年12月1日 星期五 15:30:56
这个格式输出
Can it output in the format of Friday, December 1, 2006 15:30:56 no matter in which system?
|
|
2006-12-2 04:03 |
|
|
sunyao
初级用户
 
积分 141
发帖 60
注册 2006-10-28 来自 天津
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
各个系统输出不同是不是和系统设置有关
Is the difference in outputs among various systems related to system settings?
|
|
2006-12-2 04:13 |
|
|
a9319751
中级用户
  
积分 439
发帖 170
注册 2006-1-9
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
估计和系统设置关系不大
It is estimated that it has little to do with the system settings
|
|
2006-12-2 04:37 |
|
|
a9319751
中级用户
  
积分 439
发帖 170
注册 2006-1-9
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
可以尝试把别的系统的DATE。EXE TIME。EXE 换到别的系统试试
You can try to move the DATE.EXE and TIME.EXE from other systems to other systems for testing.
|
|
2006-12-2 04:38 |
|
|
sunyao
初级用户
 
积分 141
发帖 60
注册 2006-10-28 来自 天津
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
For /F "tokens=1" %%a in ('date/t') do echo ************%%a %time%
应该在那个系统都一样把
For /F "tokens=1" %%a in ('date/t') do echo ************%%a %time%
It should be the same in any system, right?
|
|
2006-12-2 04:45 |
|
|
redtek
金牌会员
     
积分 2902
发帖 1147
注册 2006-9-21
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
8楼代码经 Win2000、XP、Win2003三个系统测试,输出日期格式不变,成功~:)
给sunyao兄加分~:)
如果不要 “星期几” 信息的话,这的确是在这3种不同系统中最准确最简单的一个方法~:)
The code on floor 8 has been tested on three systems: Win2000, XP, and Win2003. The output date format remains unchanged, and it's successful~:) Give points to Brother sunyao~:) If you don't want the "day of the week" information, this is indeed the most accurate and simplest method among these 3 different systems~:)
|

Redtek,一个永远在网上流浪的人……
_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._ |
|
2006-12-6 06:56 |
|