summaryrefslogtreecommitdiffstats
path: root/httpdate
blob: 437f345fee982536fba474f05a5094764794a73d (plain)
1
2
3
#!/bin/bash

date -s "$(curl -I google.com | sed -rn "s/^Date: (.*)$/\1/p")"