RosettaCodeData/Task/Web-scraping/PowerShell/web-scraping-1.psh

5 lines
165 B
Text
Raw Permalink Normal View History

2013-04-11 01:07:29 -07:00
$wc = New-Object Net.WebClient
$html = $wc.DownloadString('http://tycho.usno.navy.mil/cgi-bin/timer.pl')
$html -match ', (.*) UTC' | Out-Null
Write-Host $Matches[1]