New answers tagged date
1
vote
Accepted
How can I verify if time is set correctly on server in my bash script?
You can use command in Linux:
date +%s
and in Windows (PowerShell)
Get-Date -UFormat %s
to get epoch time. Those numbers can be easy compared.
P.S. For Windows you may need to strip the number to ...
- 3,722
1
vote
What is changing my Windows Server's date?
Most likely, the VM is being 'updated' to the wrong time by the ESXi host.
When a VM is 'stunned' (on pause, snapshot, migration, etc.) it inherits the host's system time, regardless of the VM ...
- 9,152
Top 50 recent answers are included
Related Tags
date × 152linux × 41
time × 35
bash × 19
timezone × 17
ubuntu × 12
cron × 10
shell × 9
centos × 8
ntp × 8
redhat × 7
windows × 6
logging × 6
docker × 5
awk × 5
debian × 4
scripting × 4
solaris × 4
clock-synchronization × 4
utc × 4
powershell × 3
unix × 3
virtualbox × 3
shell-scripting × 3
logrotate × 3