Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash command change time

#Use Date -s
date -s 'YYYY-MM-DD HH:MM:SS'
#TO change only partially
date -s "2014-12-25 $(date +%H:%M:%S)"
 
PREVIOUS NEXT
Tagged: #bash #command #change #time
ADD COMMENT
Topic
Name
2+4 =