From: Albert Schlef Date: 2010-01-22T17:22:02+09:00 Subject: Re: Get time object from the web? Jose Wong wrote: > Hello there. > I was wondering if, it was possible to connect to the internet and > create a time object (Time.new) from a web clock? Instead of using NTP you can simply download some page, via HTTP, from a webserver whose clock you trust to be sufficiently accurate. Servers send a Date header, which you can use. Example from the shell: wget -q -d -O /dev/null http://google.com 2>&1 | grep ^Date -- Posted via http://www.ruby-forum.com/.