Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

get current time curl

$ date -s `curl -I 'https://google.com/' 2>/dev/null | grep -i '^date:' | sed 's/^[Dd]ate: //g'`
Source by askubuntu.com #
 
PREVIOUS NEXT
Tagged: #current #time #curl
ADD COMMENT
Topic
Name
6+4 =