My system time is UTC and I want to convert from localtime Australia/Sydney to UTC
date -u -d 'TZ="Australia/Sydney" 4:30PM'
# output
Tue 14 Oct 2025 05:30:00 UTC
Getting the system timezone
timedatectl status
Local time: Tue 2025-10-14 07:24:24 UTC
Universal time: Tue 2025-10-14 07:24:24 UTC
RTC time: Tue 2025-10-14 07:24:23
Time zone: Etc/UTC (UTC, +0000)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no
0 Comments