2
votes
Accepted
Alpine Linux timezone doesn't stick if tzdata is removed
The package tzdata contains information about the time zones. It tells software that the zone CEST is UTC+02:00, and when it's in use.
When you remove the tzdata package all you have left is a ...
1
vote
Accepted
Calculate seconds minutes and days ago in shell
The date command cannot calculate durations.
It's essentially what I commented before:
you have timestamp one: ts1=$( date -d "08/23/2023 14:15:05" "+%s" )
you get a second ...
1
vote
Docker Container time & timezone (will not reflect changes)
The simplest way is to add -e option or ENV directive to set TZ environment variable, because debian, ubuntu, etc. already included tzdata.
Someone recommends to mount the timezone from the host:
$ ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
date × 153linux × 42
time × 36
bash × 20
timezone × 16
ubuntu × 11
cron × 10
shell × 9
centos × 8
ntp × 8
redhat × 7
windows × 6
logging × 6
docker × 5
awk × 5
debian × 4
scripting × 4
solaris × 4
timestamp × 4
clock-synchronization × 4
utc × 4
mysql × 3
powershell × 3
unix × 3
virtualbox × 3