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

5 lines
165 B
Plaintext

$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]