server time in linux code example Example 1: get current server time centos timedatectl Example 2: time in linux command date or timedatectl