home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.msdos.batch.nt      Fun with Windows NT batch files      68,980 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 67,663 of 68,980   
   Robert Roland to notsaying@127.0.0.1   
   Re: System Time   
   07 Nov 20 14:58:46   
   
   From: fake@ddress.no   
      
   On Sat, 7 Nov 2020 10:32:49 -0000 (UTC), "Kerr-Mudd,John"   
    wrote:   
      
   >Sadly for me (UK, date format yyyy-mm-dd)   
   >gives the date in US format:   
   >   
   >   
   >C:\>net time \\127.0.0.1   
   >Current time at \\127.0.0.1 is 11/7/2020 10:32 AM   
      
   That is because your local SYSTEM account is configured for US locale.   
      
   The NET TIME command is served by the Server service, which is running   
   under the local SYSTEM account.   
      
   >C:\>date   
   >The current date is: 2020-11-07   
   >Enter the new date: (yy-mm-dd)   
      
   The issue of different locales around the world is a spectacular can   
   of worms. Making a batch file that works with every possible   
   combination of language and locale is a LOT more difficult that making   
   it work on your own computer only.   
      
   In addition to the multitude for formats for date and time, the   
   response text from the NET command is translated to the language of   
   the Windows GUI. On a Norwegian Windows, it looks like this:   
      
   ---   
   C:\test>net time \\localhost   
   Gjeldende tid på \\localhost er 07.11.2020 14:35:17   
      
   Kommandoen er fullført.   
   ---   
      
   I can't imagine a way to make this universal.   
   --   
   RoRo   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca