Description
cmd - Problems while interpreting the command: date
The date is displayed with the name of the days of the week.
In Windows XP there is no such.
These names make it difficult to use the "date" command in the future.
It will be better to remove the names of the days of the week, leave only the numbers.
date time.bat:
@echo off |
>>log.txt echo %date%. %time%
|
>>log.txt echo.
|
@cls
|
log.txt:
In XP ru:
|
28.09.2017. 19:11:15,09 |
In the Russian version:
|
Џ 18.09.2017. 19:14:05,80 |
‚в 19.09.2017. 19:14:10,54 |
'а 20.09.2017. 19:14:14,62 |
—в 21.09.2017. 19:14:18,91 |
Џв 22.09.2017. 19:14:22,25 |
'Ў 23.09.2017. 19:14:25,52 |
‚б 24.09.2017. 19:14:29,87 |
In the English version:
|
Sun 09/17/2017. 19:19:38.19 |
Mon 09/18/2017. 19:19:43.56 |
Tue 09/19/2017. 19:19:47.54 |
Wed 09/20/2017. 19:19:52.15 |
Thu 09/21/2017. 19:19:56.30 |
Fri 09/22/2017. 19:20:00.68 |
Sat 09/23/2017. 19:20:05.21 |
For example, it turns out badly when creating names of files containing the date and time in the title:
DATE-TIME-.txt.bat:
@echo off |
cd /d %0\.. |
set now=%DATE: =0% %TIME: =0% |
for /f "tokens=1-7 delims=:,./- " %%a in ("%now%") do set DT=%%c.%%b.%%a %%d.%%e.%%f.%%g |
>>"%DT%.txt" echo.>>"%DT%.txt" echo %DT% |
>>"%DT%.txt" echo %DATE% %TIME% |
@cls
|
In ReactOS en. it turns out like this:
2017.28.Thu009 20.38.01.16.txt -
2017.28.Thu009 20.38.01.16
Thu 09/28/2017 20:38:01.19
In ReactOS ru. it turns out like this:
2017.09.Чт028 20.43.10.27.txt -
2017.09.—в028 20.43.10.27
—в 28.09.2017 20:43:10,33
In Windows XP ru.:
2017.09.28 20.40.04.95.txt -
2017.09.28 20.40.04.95
28.09.2017 20:40:04,96
Attachments
Issue Links
- relates to
-
CORE-8002 METABUG - cmd.exe Command-line interpreter bugs
- Open