From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14631 invoked by alias); 27 Jul 2018 16:12:57 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 23541 Received: (qmail 20181 invoked by uid 1010); 27 Jul 2018 16:12:57 -0000 X-Qmail-Scanner-Diagnostics: from mail-wr1-f46.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.221.46):SA:0(-1.9/5.0):. Processed in 2.204931 secs); 27 Jul 2018 16:12:57 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_PASS,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: luomat@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=8J/S8sbnqudoCCxB/9r/Q301cnES+soH7MZVM9ZxlqY=; b=HBX/Hs/vzM5xxsZVYHpTrPufTHox6yc1uGhhFbKmIpcAJV8s2uhXrk0dsiwGWKzh06 ahSFUwyEeBvFxcy6KUv5oI80IxpTHiU9g7K9U6lTX0rdbu6ISxE4GHvbmO3jG/9p4+us qXUJvyUenuheZIERS82Ht25Pfymrx7Qv7yCXuPWkB5cm7z0dULPu8o8uGwBg0xNRRuj4 NVomnbA0lJaSJLEfZCfoTdcgEHTpDqGEnaFYLy6bkNl2NY7ja5JgQEqlACZa8e7sHm/f xk1H3RfP2vlvRhtze8dmAQavx9DMvNIfidpjvykGg+uNGbqThS/wrnUkAwSXXZ71yNQL BV+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=8J/S8sbnqudoCCxB/9r/Q301cnES+soH7MZVM9ZxlqY=; b=b6T9oV+tX9hIMXfdTXztia2jiqkvwJZPyjDZtofr2Bnqq4LHoea4vvF6QPt62EHIqF g97pRJTHvhLsFdOBQXqk4bsb3begLSmAxyaAnuE3EY0/58HZz/3WwdGEeSG9wX2vycIK OX6KfDKljqoVuWHVHiYxxU1tyhDvR2/gsbAwpELVh0wcPV9HMqxcC1dTBzZmLazTKgE0 inSIR4blUnCuhk22QSxdu/YRMndLZoKpDc2swwjBEYavGr+sao26sxyT2Qw8IxSf/EYm EgcfcB3kNuXdYHu0Lcdv+glaunTRzCpPvdkBJWEbJV1+PpgizurnRN0P9i6buhJvVa6M g9zw== X-Gm-Message-State: AOUpUlFgHCvtHe/RIGvqsiSx1t8yYRHgXJ1iZSnSPFvh1NXda2cvv9Jv VOeb1nZ8iBh/VuQwt812eZlgp9iMEnoKEVGzyu73OkQC X-Google-Smtp-Source: AAOMgpdqcQguiqYii6MPHMCPk46IYLAZ72Blvv1SE8jrB69riz5wRVeGDE9vXQgX5xI7rFSsB3VzSPtAG3rVbPE5eWI= X-Received: by 2002:adf:e749:: with SMTP id c9-v6mr5416697wrn.143.1532707970623; Fri, 27 Jul 2018 09:12:50 -0700 (PDT) MIME-Version: 1.0 From: TJ Luoma Date: Fri, 27 Jul 2018 12:12:14 -0400 Message-ID: Subject: =?UTF-8?Q?Is_there_a_way_to_get_the_=E2=80=9Cfull=E2=80=9D_time_zone_curre?= =?UTF-8?Q?ntly_in_use=3F?= To: Zsh-Users List Content-Type: multipart/alternative; boundary="000000000000222cb70571fd62f7" --000000000000222cb70571fd62f7 Content-Type: text/plain; charset="UTF-8" Hello Zsh Friends, I am trying to use zsh to find the current time-zone that the computer uses. I know that this: `strftime "%Z" "$EPOCHSECONDS"` will show me the current timezone (EDT, in my case) but I'm looking for "America/New_York" The only way that I can find to get that information on the Mac is `sudo systemsetup -gettimezone` but it seems absurd to need to use `sudo` to get that information. I searched the web and found that the variable "TZ" is supposed to hold this command, but TZ is empty in my testing on my Macs, so that's no help either. I've got to imagine that there's _some_ way to do this, but I'm stuck trying to figure it out. Anyone have a solution? Thanks for your time Tj -- TJ Luoma TJ @ MacStories Personal Website: luo.ma (aka RhymesWithDiploma.com) Twitter: @tjluoma --000000000000222cb70571fd62f7--