Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-13848

cmd - Problems while interpreting the command: date

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 0.4.15
    • Shell
    • None

    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

        1. WinXP_Date.PNG
          WinXP_Date.PNG
          11 kB
        2. Windows XP rus..png
          Windows XP rus..png
          376 kB
        3. Win2003Server_Date.PNG
          Win2003Server_Date.PNG
          8 kB
        4. Test-CMD_date-time.7z
          0.5 kB
        5. Regional_Options_Date.png
          Regional_Options_Date.png
          30 kB
        6. ReactOS---r75981.png
          ReactOS---r75981.png
          76 kB
        7. ReactOS--r75981.png
          ReactOS--r75981.png
          91 kB
        8. log.txt
          0.5 kB
        9. debug_r75981.log
          55 kB
        10. date-time-winxpjp.png
          date-time-winxpjp.png
          36 kB
        11. date-time-win2k3english.png
          date-time-win2k3english.png
          26 kB
        12. date-time-win10jp.png
          date-time-win10jp.png
          7 kB
        13. date-time-ros-russian.png
          date-time-ros-russian.png
          32 kB
        14. date-time-ros-english.png
          date-time-ros-english.png
          26 kB
        15. DateTest.zip
          28 kB
        16. 0.4.15-dev-8325-g07f2631-Russian-FIXED.png
          0.4.15-dev-8325-g07f2631-Russian-FIXED.png
          25 kB

        Issue Links

          Activity

            People

              katayama_hirofumi_mz Katayama Hirofumi MZ
              Start Start
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: