summaryrefslogtreecommitdiffstats
path: root/httpdate
diff options
context:
space:
mode:
Diffstat (limited to 'httpdate')
-rwxr-xr-xhttpdate3
1 files changed, 3 insertions, 0 deletions
diff --git a/httpdate b/httpdate
new file mode 100755
index 0000000..437f345
--- /dev/null
+++ b/httpdate
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+date -s "$(curl -I google.com | sed -rn "s/^Date: (.*)$/\1/p")"