From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5466 invoked by alias); 27 Jul 2018 23:09:19 -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: 23543 Received: (qmail 19760 invoked by uid 1010); 27 Jul 2018 23:09:19 -0000 X-Qmail-Scanner-Diagnostics: from mail-oi0-f43.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.218.43):SA:0(-1.9/5.0):. Processed in 1.370857 secs); 27 Jul 2018 23:09:19 -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: linusarver@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:references:in-reply-to:from:date:message-id:subject:to :cc; bh=K4WQqvO7HpvU+CwIbYawdZP1Licyf8Q5Au2OXN54QQ4=; b=Vu0PpIqcNXpIaAr392H5FnQj3oE7xO5d+Qwqik5YO+PRmRU2B4KGqmGcCk7jvk5VvG kj4vcF7cTAhhZA5GVndgGYN3n/tHeQjNS9qrA2ftsiqQXu803bvT0ouO5k8hl+y4pnm7 DCAnFuTkKHue3Lyl6rE5Culltlwe0FTNW4m38COcAPwpdYXD933SaNXfHosu7EZCzGKE omq76m85yaplp6xjye+BSR3XYPRLahpDeD3N1uSzDpg0wVvEJCYqccgGhA8VY9js7lDo byAGxUKqR23Pk49dfeLb1WrJ7Je22dhD1fnMM6aMq7k6ETvQinfcajjXMrDv+SRdQrmW VDLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=K4WQqvO7HpvU+CwIbYawdZP1Licyf8Q5Au2OXN54QQ4=; b=bpcT3un1gAYz6HoqepDbd0kI8Biy24Oxb9f/SO7A3Ut6ePiAlQY7F7OQj97Q0hddM1 VOazdOOtNd01vMH+MAcMJ90D7JPsilhOkQf41Gn7SZ4MlHlIzUs8g9jyhfZWvs4Xi7Xh jX2gDXUV1n35pBW5MFUITfR6bE9cZzXyqxoASQLOkM0H7bP6EJ9aOfZo0f5A+gEOeVrM fqLgwcqNnKdW3+WLw7Utbj3Agg3PbE+2EWk9l4dr6fYn+F4H6t69P20JsDKJeWJK/lQL +g1KV+NnDpTFBRu6afKHxRT7Od+SarRlOJ4lLnDH25uvMsrHX+ub0Rvh6IB5mtyjxtQO xIZg== X-Gm-Message-State: AOUpUlG6oyz9ubh9WOmXH+GQcQ8vxgvGAqzDWVYbSCNII0aNniGm4I3d 6a7NBJ8oMRnRc8nPfO703VnHkAyG2B+9bRUF73I= X-Google-Smtp-Source: AAOMgped1eYjB6O9NRyjQZ+AElDxz6/OxfOIMTjN3QLZzLChZGD9uqwwRQmQgQI4SKzbv0YeonSssYVLg4V+AXZR+ec= X-Received: by 2002:aca:f5d1:: with SMTP id t200-v6mr8756693oih.12.1532732954961; Fri, 27 Jul 2018 16:09:14 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Linus Arver Date: Fri, 27 Jul 2018 16:09:03 -0700 Message-ID: Subject: =?UTF-8?Q?Re=3A_Is_there_a_way_to_get_the_=E2=80=9Cfull=E2=80=9D_time_zone_c?= =?UTF-8?Q?urrently_in_use=3F?= To: luomat@gmail.com Cc: zsh-users@zsh.org Content-Type: multipart/alternative; boundary="00000000000050ed580572033377" --00000000000050ed580572033377 Content-Type: text/plain; charset="UTF-8" How about readlink /etc/localtime ? On Fri, Jul 27, 2018 at 9:13 AM TJ Luoma wrote: > 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 > --00000000000050ed580572033377--