home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / setclock.zip / readme next >
Text File  |  1994-04-10  |  1KB  |  24 lines

  1. This is an OS/2 2.x with IBM TCP/IP 2.0 set clock from network time
  2. server utility. To set the local clock assign first an environment variable
  3. TZ and then execute setclock.exe by entering 'setclock <timeserver>' where
  4. timeserver is the host's name or IP number you want to receive the new time.
  5.  
  6. By default setclock.exe uses port 37 which is timeserver's port for time
  7. queries but you can use other ports by specifying command line parameter
  8. '-p <nn>' where <nn> is the port number. Also, the TZ environment variable
  9. can be set by using the command line parameter '-t <timezone>' where 
  10. <timezone> is your local timezone string.
  11.  
  12. For example:
  13.  
  14. setclock timehost
  15. set clock using host 'timehost' on your local domain and your current TZ
  16. environment variable. Here we assume that TZ is already set and that you
  17. have set and configured your nameserver.
  18.  
  19. setclock host.at.some.domain -p453 -tGMT-9DST
  20. set clock using host 'host.at.some.domain', non-standard port # 435 and use
  21. timezone 9 hours east from Greenwich. (Somewhere in Mongolia I guess). Also
  22. here we're using the 'Daylight Save Time' i.e. 'summer time'.
  23.  
  24.