System Time UTC convert a local time to its UTC time

by Oct 14, 2025IT Tips0 comments

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

Submit a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.