|
論壇說明 |
歡迎您來到『史萊姆論壇』 ^___^ 您目前正以訪客的身份瀏覽本論壇,訪客所擁有的權限將受到限制,您可以瀏覽本論壇大部份的版區與文章,但您將無法參與任何討論或是使用私人訊息與其他會員交流。若您希望擁有完整的使用權限,請註冊成為我們的一份子,註冊的程序十分簡單、快速,而且最重要的是--註冊是完全免費的! 請點擊這裡:『註冊成為我們的一份子!』 |
|
主題工具 | 顯示模式 |
2004-07-26, 04:32 PM | #1 |
註冊會員
|
請問NTPCLOCK及Atomic Clock Sync問題
請問各位大大....
1.Ntpclock底下的網路校時設定/立即查詢主機時間...為什麼我都連不到主機? (tick.stdtime.gov.tw及time.stdtime.gov.tw......等) 2.Atomic Clock Sync 每天總會慢19秒左右...這一定要我們天去Ping一次主機嗎?還是它可以設定規則? 謝謝大大! |
送花文章: 15,
|
2004-07-27, 12:56 PM | #4 (permalink) |
榮譽會員
|
網路時間傳輸協定(NTP-Network Time Protocol)是由美國德拉瓦大學的David L. Mills教授於1985年提出,是設計用來使Internet上電腦維持相同時間的一種通信傳輸協定。該傳輸協定可以估算出資料包在Internet上往返延遲,並可獨立地估算電腦時鐘偏差,從而實現網路上高精準度電腦校時。
時間伺服器(Time Server)是利用NTP的一種伺服器,通過它可以使Internet中電腦維持時間同步。 NTP是一個跨越廣域網或區域網路的複雜的同步時間傳輸協定,它通常可獲得毫秒級的時間精度。目前北京大學參與到CERNET時間服務體系中,為校內用戶提供最便捷、準確的時間服務 啟動W32Time服務 在預設的狀態下,W32Time服務是在系統啟動的時候自動載入,您可以用系統管理工具或者 Net Time 工具自由的啟動或者停止W32Time服務。 1) 在圖形界面上啟動W32Time服務:"控制台-系統管理工具-服務-"中點擊"Windows Time"服務,並且在彈出的對話視窗中點擊"啟動"按鈕; 2) 在圖形界面上停止W32Time服務:"控制台-系統管理工具-服務-"中點擊"Windows Time"服務,並且在彈出的對話視窗中點擊"停止"按鈕; 3) 在指令行格式下啟動W32Time服務:使用指令 net start w32time ; 4) 在指令行格式下停止W32Time服務:使用指令 net stop w32time ; 或者 注意: 在WIN2000下,您需要把我們的NTPS配置成W32Time服務外部時間源。您可以在指令行模式下,是用Net Time 工具: net time /setsntp:IPAddress 注意:IPAddress 是NTPS的IP位址。 win2k下執行:net time /set sntp:ntp.sjtu.edu 我在圖中用了time.windows.com這個時間伺服器,大家使用的時候可以自己選項,我最後會附上時間伺服器列表。 然後執行net stop w32time,再執行net start w32time,使本地機和時間伺服器同步。 有的時間大呵呵,現在時間自己就會變成準確的時間了。家需要多反覆幾次以上2個指令。 對於xp以後的系統,控制台>時間與日期 ...按點擊>.直接貼上 時間伺服器(time server)名單 time.windows.com Active Servers AR time.sinectis.com.ar (216.244.192.3) AR tick.nap.com.ar (200.49.40.1) AR tock.nap.com.ar (200.49.40.15) AU ntp.saard.net (203.21.37.1 BE ntp1.belbone.be (195.13.23.5) BE ntp2.belbone.be (195.13.1.153) BR ntp.cais.rnp.br (200.144.121.33) BR ntp.hiway.com.br (200.246.53.5) BR ntp.pop-pr.rnp.br (200.19.74.21) BR ntp.ufes.br (200.137.65.132) BR ntp1.pucpr.br (200.192.112. CA ntp.cpsc.ucalgary.ca (136.159.2.1) CA tick.utoronto.ca (128.100.103.252) CA timelord.uregina.ca (142.3.100.15) CZ ntp.globe.cz (81.95.96.3) CZ ntp.karpo.cz (217.11.227.6 CZ ntp1.contactel.cz (212.65.193.3) CZ ntp2.contactel.cz (212.65.193.4) DK clock.netcetera.dk (130.228.230.2) GR ntp.mikroskosmos.com (213.5.174.2) DK clock2.netcetera.dk (194.192.207.9) ES slug.ctv.es [194.179.52.14] ) FI tick.keso.fi (194.137.39.67) FI tock.keso.fi (194.137.39.6 FR ntp.ndsoftwarenet.com FR ntp.obspm.fr FR ntp.tuxfamily.net FR ntp1.tuxfamily.net (80.67.177.2) FR ntp2.tuxfamily.net (80.67.179.2) FR ntp.univ-lyon1.fr (134.214.100.6) FR ntp.via.ecp.fr (138.195.130.71) HR zg1.ntp.carnet.hr (161.53.2.70) HR zg2.ntp.carnet.hr (161.53.123.4) HR st.ntp.carnet.hr (161.53.30.3) HR ri.ntp.carnet.hr (161.53.40.3) HR os.ntp.carnet.hr (161.53.200. HU time.kfki.hu (148.6.0.1) ID ntp.incaf.net (202.180.0.71) IT ntps.net4u.it (80.83.192.129) JP ntp.cyber-fleet.net KR ntp.ewha.net [211.39.143.103] KR time.nuri.net[203.255.112.4] MX ntp2a.audiotel.com.mx (200.34.146.67) MX ntp2b.audiotel.com.mx (200.34.146.6 MX ntp2c.audiotel.com.mx (200.34.146.69) MY ntp.doubleukay.com NG ntp.supernet300.com (216.72.109.4) NL ntp1.theinternetone.net (62.4.94.221) NL ntp2.theinternetone.net (62.4.94. NL ntp3.theinternetone.net (62.4.94.210) NO fartein.ifi.uio.no (129.240.64.3) NZ ntp.iprolink.co.nz (use DNS) NZ ntp.massey.ac.nz (130.123.128.253) NZ ntp.public.otago.ac.nz (139.80.64.114) NZ tk1.ihug.co.nz, tk2.ihug.co.nz, tk3.ihug.co.nz (use DNS) PL info.cyf-kr.edu.pl: 149.156.4.11 PT bug.fe.up.pt (193.136.54.1) RO ntp.ip.ro (212.93.129.107) RU ntp.psn.ru (194.149.67.130) RU sign.chg.ru (193.233.46.10) SE ntp.lth.se (130.235.20.3) SG ntp.shim.org SI biofiz.mf.uni-lj.si (193.2.69.10) SI ntp1.arnes.si (193.2.1.66) SI ntp2.arnes.si (193.2.1.92) SI time.ijs.si (193.2.4.6) SV clock.cimat.ues.edu.sv (168.243.7.66) UA ntp.terabyte.com.ua (195.66.196.173) UK bear.zoo.bt.co.uk (132.146.236.132) UK ntp.cis.strath.ac.uk UK ntp.exnet.com (194.207.34.9) UK ntp2a.mcc.ac.uk (130.88.202.49) UK ntp2b.mcc.ac.uk (130.88.200.9 UK ntp2c.mcc.ac.uk (130.88.200.4) UK ntp2d.mcc.ac.uk (130.88.203.12) UK ntp{0|1|2}.sandvika.net (194.164.127.{4|5|6}) UK ntp0.uk.uu.net 158.43.128.33 UK ntp1.uk.uu.net 158.43.128.66 UK ntp2.uk.uu.net 158.43.192.66 UK tick.tanac.net (195.112.34.51) UK time-server.ndo.com (195.7.224.135) US AR sushi.compsci.lyon.edu (150.208.72.154) US AZ decimal.lib.ci.phoenix.az.us (148.167.132.201) US AZ dewey.lib.ci.phoenix.az.us (148.167.132.200) US AZ ntp.drydog.com (207.211.160.111) US CA clock.fmt.he.net (216.218.192.202) US CA clock.sjc.he.net (216.218.254.202) US CA ntp.ucsd.edu (132.239.254.49) US CA ntp1.mainecoon.com (63.192.96.2) US CA ntp2.mainecoon.com (63.192.96.3) US CA ntp1.sf-bay.org (207.126.97.57) US CA ntp2.sf-bay.org (204.74.68.55) US CA reloj.kjsl.com (204.87.183.6) US CA time.berkeley.netdot.net (216.27.190.202) US CA time.five-ten-sg.com (205.147.40.34) US CO ntp1.tummy.com US DE louie.udel.edu (128.4.40.12) US GA ntp.shorty.com (208.21.108.186) US GA rolex.usg.edu US GA timex.usg.edu US IL chrivh40.cch.com (198.147.37.140) US IL ntp-0.cso.uiuc.edu (130.126.24.53) US IL ntp-1.cso.uiuc.edu (130.126.24.24) US IL ntp-1.mcs.anl.gov (140.221.9.20) US IL ntp-2.cso.uiuc.edu (130.126.24.44) US IL ntp-2.mcs.anl.gov (140.221.9.6) US IN gilbreth.ecn.purdue.edu (128.46.129.93, 128.46.141.93, 128.46.147.93, 128.46.148.93, 128.46.171.93) US IN harbor.ecn.purdue.edu (128.46.128.76, 128.46.129.76, 128.46.154.76) US IN horologe.cerias.purdue.edu(128.10.252.1) US IN tick.cerias.purdue.edu(128.10.252.9), tock.cerias.purdue.edu(128.10.252.10) US KS ntp1.kansas.net (199.240.130.1) US KS ntp2.kansas.net (199.240.130.12) US MA ntp.ourconcord.net (216.204.156.2) US MN ns.nts.umn.edu (128.101.101.101) US MN nss.nts.umn.edu (134.84.84.84) US MO time-ext.missouri.edu (NO IP LISTED) US MT chronos1.umt.edu (192.73.48.1) US MT chronos2.umt.edu (192.73.48.2) US MT chronos3.umt.edu (192.73.48.6) US NC clock1.unc.edu (152.2.21.1) US NJ tick.jrc.us (65.211.109.1) US NJ tock.jrc.us (65.211.109.11) US NV cuckoo.nevada.edu (131.216.1.101) US NV tick.cs.unlv.edu (131.216.22.15) US NV tock.cs.unlv.edu (131.216.22.17) US NY clock.linuxshell.net (64.243.118.2) US NY clock.nyc.he.net (209.51.161.238) US NY ntp0.cornell.edu US NY sundial.columbia.edu (128.59.59.177) US NY timex.cs.columbia.edu (128.59.16.20) US PA clock-1.cs.cmu.edu (128.2.250.95) US PA clock-2.cs.cmu.edu (128.2.222. US PA clock.psu.edu (128.118.25.3) US PA fuzz.psc.edu (128.182.58.100) US PA ntp-1.ece.cmu.edu (no address, please use DNS) US PA ntp-2.ece.cmu.edu (no address, please use DNS) US TX ntp.cox.smu.edu (129.119.80.126) US TX ntp.fnbhs.com (209.144.20.76) US TX ntp.tmc.edu (128.249.1.10) US TX ntppub.tamu.edu (no address available) US TX tick.greyware.com (207.55.146.19) US TX tock.greyware.com (207.55.146.54) US VA ntp-1.vt.edu (198.82.162.213) US VA ntp-2.vt.edu (198.82.161.227) US VA ntp.cmr.gov (140.162.8.3) US VT ntp0.state.vt.us (159.105.23.194) US VT ntp1.state.vt.us (159.105.23.130) US VT ntp2.state.vt.us (170.222.64.130) US WI ntp1.cs.wisc.edu (128.105.39.11) US WI ntp3.cs.wisc.edu (128.105.37.11) US WI ntp3.sf-bay.org (207.126.97.57) VE ntp.linux.org.ve (150.188.8.196) ZA ntp.cs.unp.ac.za (143.128.82.200) ZA tock.nml.csir.co.za (146.64.241.229) AU ntp.ise.canberra.edu.au (137.92.140.80) AU ntp0.cs.mu.OZ.AU (128.250.36.2) AU ntp1.cs.mu.OZ.AU (128.250.36.3) BR ntp1.rnp.br (200.19.119.69) CA clock.uregina.ca (142.3.100.2) CA subitaneous.cpsc.ucalgary.ca (136.159.2.254) CA tick.usask.ca (128.233.3.100) CA tock.usask.ca (128.233.3.101) CH ntp.metas.ch (193.5.216.14) CH swisstime.ethz.ch (129.132.2.21) CL ntp.dgf.uchile.cl (146.83.8.200) CL ntp.shoa.cl (200.68.60.246) CZ ntp.cesnet.cz (195.113.144.201) DE ntp0.fau.de (131.188.3.220) DE ntp1.fau.de (131.188.3.221) DE ntp2.fau.de (131.188.3.222) DE ntp3.fau.de (131.188.3.223) DE ntps1-0.cs.tu-berlin.de (130.149.17.21) DE ntps1-1.cs.tu-berlin.de (130.149.17. DE ptbtime1.ptb.de (192.53.103.103) DE ptbtime2.ptb.de (192.53.103.104) DE rustime01.rus.uni-stuttgart.de (129.69.1.153) DK Denmark GPS.FreeBSD.dk (212.242.86.186) DK Denmark GPS.dix.dk (192.38.7.240) FR canon.inria.fr (192.93.2.20) FR chronos.cru.fr FR ntp-p1.obspm.fr FR ntp-sop.inria.fr (138.96.64.10) FR ntp1.curie.fr FR ntp2.curie.fr FR ntp3.curie.fr IT ntp1.ien.it (193.204.114.232) IT ntp2.ien.it (193.204.114.233) IT tempo.cstv.to.cnr.it (150.145.33.1) JP clock.nc.fukuoka-u.ac.jp (133.100.9.2) JP clock.tl.fukuoka-u.ac.jp (133.100.11. MX cronos.cenam.mx NL ntp0.nl.net (193.67.79.202) NL ntp1.nl.net (193.79.237.14) NL ntp2.nl.net (193.79.237.30) NO time.service.uit.no NZ clock1.canterbury.ac.nz (132.181.12.13) PL ntp.certum.pl (217.153.69.35) PL vega.cbk.poznan.pl (150.254.183.15) SE ntp1.gbg.netnod.se (192.36.133.130) SE ntp2.gbg.netnod.se (192.36.133.66) SE ntp1.mmo.netnod.se (192.36.134.17) SE ntp2.mmo.netnod.se (192.36.134.25) SE ntp1.sp.se (62.119.40.9 SE ntp2.sp.se (62.119.40.99) SE ntp1.sth.netnod.se (192.36.144.22) SE ntp2.sth.netnod.se (192.36.144.23) SE time1.stupi.se (192.36.143.150) SE time2.stupi.se (192.36.143.151) SG jamtepat.singnet.com.sg (165.21.110.7) SI goodtime.ijs.si (193.2.4.2) UK chronos.csr.net 194.35.252.7 (CNAME ntp.csr.net) UK ntp2.ja.net (193.63.94.26) US AK ntp.alaska.edu (199.165.76.11) (CNAME ntp-ua.usno.navy.mil) US CA clepsydra.dec.com (204.123.2.5) Location: HP Western Research Laboratory, Palo Alto, CA US CA clock.isc.org (192.5.5.250) US CA clock.sgi.com (192.48.153.74) US CA clock.via.net (209.81.9.7) US CA gpstime.trimble.com 206.40.88.30 US CA montpelier.ilan.caltech.edu (131.215.254.2) CNAMES: montpelier.caltech.edu, ntp-caltech.usno.navy.mil US CA nist1.aol-ca.truetime.com (207.200.81.113) US CA nist1.datum.com (66.243.43.21) US CA nist1-sj.glassey.com (207.126.98.204) US CA ntp-cup.external.hp.com (192.6.38.127) US CA ntp.nasa.gov (198.123.30.132) US CA tick.gpsclock.com (206.203.0.15) US CA tick.ucla.edu (164.67.62.194) CNAMEs: navobs1.ucla.edu, time.ucla.edu US CA timekeeper.isi.edu (128.9.176.30) US CA tock.gpsclock.com (206.223.0.14) US CA usno.pa-x.dec.com (204.123.2.72) CNAME: navobs1.pa-x.dec.com US CO navobs1.usnogps.navy.mil (204.34.198.40) CNAME: tick.usnogps.navy.mil US CO navobs2.usnogps.navy.mil (204.34.198.41) CNAME: tock.usnogps.navy.mil US CO time-a.nist.gov (129.6.15.2 New Access policy: Open only to existing users; other users please use time-b or time-c instead. US CO time-a.timefreq.bldrdoc.gov (132.163.135.130, 132.163.4.101) Location: NIST Boulder Laboratories, Boulder, Colorado US CO time-b.timefreq.bldrdoc.gov (132.163.135.131, 132.163.4.102) US CO time-c.timefreq.bldrdoc.gov (132.163.135.132, 132.163.4.103) US CO time-d.timefreq.bldrdoc.gov (132.163.135.133, 132.163.4.104) US CO time.nist.gov (192.43.244.1 US CO utcnist.colorado.edu (128.138.140.44) US DC ntp2.usno.navy.mil (192.5.41.209) US DC tick.usno.navy.mil (192.5.41.40) US DC tock.usno.navy.mil (192.5.41.41) US DE mizbeaver.udel.edu (128.4.1.2) US DE ntp1.connectiv.com (138.39.7.20) US DE ntp1.nss.udel.edu (128.175.60.175) US DE rackety.udel.edu (128.4.1.1) US FL ntp-s1.cise.ufl.edu (128.227.205.3) (CNAME ntp-ufl.usno.navy.mil) US GA navobs1.gatech.edu (130.207.244.240) CNAMES: tick.gatech.edu, ntp-gatech.usno.navy.mi US GA time.twc.weather.com (216.133.140.77) US HI tick.mhpcc.edu (164.122.7.123) (CNAME: ntp-mhpcc.usno.navy.mil) US IL ntp0.mcs.anl.gov (140.221.8.8 (CNAME ntp-anl.usno.navy.mil) US IL truechimer.cso.uiuc.edu (128.174.5.5 US IN tick.cerias.purdue.edu(128.10.252.7) (alias darkcity.cerias.purdue.edu) US IN tock.cerias.purdue.edu(128.10.252.6) (alias caspak.cerias.purdue.edu) US MA bonehed.lcs.mit.edu (18.26.4.105) US MA ntp.quidnet.com (140.239.15.7) US MA tick.mit.edu (18.145.0.30) CNAME: navobs1.mit.edu US MA timeserver.cs.umb.edu (158.121.104.4) US MD time-b.nist.gov (129.6.15.29) US MD umd1.umd.edu (128.8.10.1) US ME ntp.colby.edu (137.146.210.250) (CNAME ntp-colby.usno.navy.mil) US MO navobs1.wustl.edu (128.252.19.1) CNAME: tick.wustl.edu US NC ncnoc.ncren.net (192.101.21.1) US NC terrapin.csc.ncsu.edu 152.1.58.124 US NJ ntp0.jensenresearch.com (65.211.109.12) US NY nist1-ny.glassey.com (208.184.49.9) US OH lerc-dns.lerc.nasa.gov (128.156.1.43) US OK now.okstate.edu (139.78.100.163) CNAME: ntp-okstate.usno.navy.mil US PA gps1.otc.psu.edu (128.118.25.12) US PA otc1.psu.edu (128.118.46.3) US PA wwv.otc.psu.edu (128.118.46.3) US TX tick.uh.edu (129.7.1.66) CNAME: time.uh.edu US UT time.xmission.com (198.60.22.240) US VA: nist1.aol-va.truetime.com (205.188.185.33) US VA nist1-dc.glassey.com (216.200.93. US WA bigben.cac.washington.edu 140.142.16.34 (CNAME ntp-wu.usno.navy.mil) US WA time-nw.nist.gov (131.107.1.10) US WI ben.cs.wisc.edu (128.105.201.11) Discontinued Service bitsy.mit.edu chronos.univ-rennes1.fr clock.cmc.ec.gc.ca clock.llnl.gov clock.osf.org fuzzy.nta.no ntp.cc.utexas.edu ntp.marine.csiro.au ntp.mel.nml.csiro.au ntp.nml.csiro.au ntp.per.nml.csiro.au ntp.quidnet.com ntp.syd.dms.csiro.au ntp.tip.csiro.au ntp.cs.mu.OZ.AU ntpa2.kph.uni-mainz.de ntps1-1.rz.Uni-Osnabrueck.DE ntp0.sdd.hp.com ntp0.ja.net ntp1.sony.com ntps1-0.uni-erlangen.de ntps1-1.uni-erlangen.de ntps1-2.uni-erlangen.de time.ien.it utcnist1.reston.mci.net wave.mbari.org wwvb.erg.sri.com wwvb.isi.edu wwwa2.kph.uni-mainz.de y2k-test.timefreq.bldrdoc.gov allison.radiks.net bernina.ethz.ch black-ice.cc.vt.edu calvus.rzs-hm.si chime.utoronto.ca chime1.surfnet.nl churchy.udel.edu clock.tricity.wsu.edu constellation.ecn.uoknor.edu delphi.cs.ucla.edu dominator.eecs.harvard.edu eagle.tamu.edu finch.cc.ukans.edu fuzz.sura.net gazette.bcm.tmc.edu hmljhp.rzs-hm.si kuhub.cc.ukans.edu lassen.slc.ca.gov libra.rice.edu ntp.adelaide.edu.au ntp.botbay.net ntp.ctr.columbia.edu ntp.landau.ac.ru ntp.olivetti.com ntp.pop-df.rnp.br ntp.to.themasses.org ntp.waikato.ac.nz ntp1.mpis.net ntp2.mpis.net ntp1.ossi.com ntp1.sura.net ntp2.ossi.com ntp2.sura.net salmon.maths.tcd.ie smart1.svi.org tick.anice.net.ar tick.koalas.com ticktock.wang.com time.deakin.edu.au time.esec.com.au time.software.net tmc.edu tock.anice.net.ar truechimer.waikato.ac.nz vtserf.cc.vt.edu wuarchive.wustl.edu www1.cmc.ec.gc.ca www2.cmc.ec.gc.ca xfiles-jr.esa.lanl.gov xfiles.esa.lanl.gov time.windows.com 1.在工作列管理欄上雙按時間。 2.按下Internet Time(Internet時間)選擇項。 3.選項您希望使用的時間伺服器並確保選Automatically synchronize with an Internet time server(自動使用Internet時間伺服器實現同步)複選框。 在嘗試同步您的時鐘前, 請確保已經設定了正確的日期, 如果日期設定錯誤的話, Internet時間伺服器將無法更新時間。如果您使用個人或網路防火牆的話, 您可能需要調整相關設定已排除時間同步程序中所遇到的障礙。 or.... Advanced Time Synchronizer好用,支持SNTP(UDP/IP)、TIME、DAY TIME三種傳輸協定,後兩種TCP/TP都可以在ADSL撥號的電腦上使用。 主頁: http://www.southsoftware.com/ Chronograph 3.15 校時工具,透過連結到National Institute of Standards and Technology的原子鐘標準時間,將電腦的時間標準同步化,誤差保持在0.5秒之內,相當準確。 Chronograph可以設定校時週期、自動撥號上網校時,讓你不再需要為了校時而費神。 Express.TimeSync.v2.6 軟體界面簡潔大方 而且好用! Alfaclock 我用Becky時間校正插件 一個最小的(9K),綠色的,免費的 Neutron 1.03 引用: Neutron ======= Version 1.03 - March 12th 2002 ------------------------------ Neutron is a very simple and small time synchronizing program that retrieves the accurate time from one of several specialized time servers on the Internet. Once the network time has been retrieved the program can set your computer's clock to match it. Options in the program enable you to automatically obtain the time from the time server and set your clock appropriately at program startup. It is also possible to have the program automatically exit after the time has been set and so is ideal for placing a shortcut in your Startup folder to sync your clock when your computer is started. Neutron uses the standard Time protocol (TCP or UDP port 37). See RFC 868 for more details. The time retrieved from the network time server is given as the number of seconds since midnight on January 1st 1900. Since the protocol only allows accuracy down to the second you may not get the most accurate time possible but it is usually good enough to always be within about half a second of "true" time. Network latency is accommodated in the calculations involved in setting your computer clock. Clicking the setup button ">>" shows you the program options. Clicking the same button will hide the options. The setup options allows you to choose the time server that is used by selecting from a preset list in the dropdown list. You may prefer to use one that is located nearer your computer for faster responses. Choose TCP or UDP for the Time protocol to be used. UDP is recommended because of the lower network communications overhead. Select whether you want the program to automatically obtain and synchronize to the network time when you start the program by clicking in the "Auto sync at program startup" checkbox. Select whether you want the program to exit after it has synced your clock time by clicking in the "Exit after time has been synced" checkbox. If you have this option set, the next time you start the program you can prevent the program from exiting by de-selecting this same checkbox. Version 1.00 - Initial Release Version 1.01 - Wasn't properly taking into consideration Daylight Savings. Version 1.02 - Typo: "31st" would be displayed as "311st" Version 1.03 - The midday 12 hour was being displayed as 0 instead of 12. ---------------------------------------------------------------------- This software was written by Robin Keir and is distributed as freeware. I take no responsibility for any damage or problems caused by using it but I do welcome comments and suggestions. ...等軟體 把下面的內容存成synctime.bat,為方便起見可以放到system目錄下, 然後就可以在指令行下 synctime time.sjtu.edu.cn 同步本地機時間了. 程式碼: @echo off echo. echo ====================================================================== echo SyncTime tool v0.1 by GreenPupil@SMTH echo ====================================================================== if "%1"=="" goto SHOWHELP if "%1"=="/?" goto SHOWHELP if "%1"=="/h" goto SHOWHELP if "%1"=="-h" goto SHOWHELP net time /SETSNTP:%1 net stop w32time net start w32time echo Done! goto END :SHOWHELP echo. echo USAGE: %0 {SNTP-TIME-SERVER} echo Where SNTP-TIME-SERVER is the DNS or IP address of the server. :END echo. |
__________________ |
|
送花文章: 3,
|