From owner-freebsd-standards@freebsd.org Sun May 20 18:14:33 2018 Return-Path: Delivered-To: freebsd-standards@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2D6ADEEA69A for ; Sun, 20 May 2018 18:14:33 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-it0-x22a.google.com (mail-it0-x22a.google.com [IPv6:2607:f8b0:4001:c0b::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C02E4695C8 for ; Sun, 20 May 2018 18:14:32 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-it0-x22a.google.com with SMTP id c3-v6so18731009itj.4 for ; Sun, 20 May 2018 11:14:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=ZWdXRbHN2zYIjsd22Bv21kZKxryCkYqHjSxOBmKj0nU=; b=1Mwqapyi2yr8U/y13cNGkR0+TJ46Qop0QUPXi59x0GjmA2BxbuJBa/u/tMrcfHfXw4 4I/Aq8v/0WtuxjpoylCcgHoaPply8tk3FH2VA3u70ZOPBdFYuu+RYhr4H+a4jO6wMz5m YcZHbTchoKfDb/gN765iREGNkgs36dWeSLoseVuE0SigLSOabyNARBf/ikBeZ2Dlx1eu Pyqxr2dhoDbTgQiEFZPm/UoibwBHwfjts8N/BGX66x+nthbJ9YHX/88lPU9TTMQHrInK jhpm0WMCEQkmJXBrJi/alOJLxfM0zlaVY590i7JPkkN/llbunP4yRt4meDdm1m6ai8ls PhEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=ZWdXRbHN2zYIjsd22Bv21kZKxryCkYqHjSxOBmKj0nU=; b=suW4o/W37eYQXeh9DlBlbLG0Yg9dKBY6N8UWGmGZluARWgJE6u8yXPGQQ0Z+d+wVs0 4c60g6GhSOcvxMzn1p3JPPg73lKMK2QyleQYaqxxX5rBU6OoP2TF/9XnEfH7Fj3cxVoX fQg315UsKp7Jmxe6b8VEsCNazjhKLrL7prnPWFT6ZtyQOzSpm9E41Q+ZpkPAashF/iOo 8YmP521WwZT4WJ9o6LZiv0j7x0JmbVNnC1L7q8yWmbTxnbs/Dsd54ePLNlBqVxI1QiG8 r9ILGg891XJ8jXdXiMQM1Tr+jj3pzDpSoCSvtUMFgNERQ/w7+P6g5QadJ26a2zd5X0qJ l6sg== X-Gm-Message-State: ALKqPwdC4lo4IidVBzOj/7R405P/LQqvpxedV+05J4vAmnekxluRMZAP aN4BFZrR51SBDUQ0L7h8vugFP5O7bZzdqiMbIUpEzQ== X-Google-Smtp-Source: AB8JxZqN0Y2vHS+KmKDx9f5NRpSmO98UQUjCArMb4iPpfiyLs4GFdZMEBz4/E10I3KXGxr4TBRrOGjVnjC7GmiWKtVg= X-Received: by 2002:a24:6ec1:: with SMTP id w184-v6mr14203909itc.57.1526840072063; Sun, 20 May 2018 11:14:32 -0700 (PDT) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 2002:a4f:a649:0:0:0:0:0 with HTTP; Sun, 20 May 2018 11:14:31 -0700 (PDT) X-Originating-IP: [2603:300b:6:5100:1052:acc7:f9de:2b6d] In-Reply-To: <091FB496-1C89-4146-8EFB-8D43FD0F7C0F@csail.mit.edu> References: <091FB496-1C89-4146-8EFB-8D43FD0F7C0F@csail.mit.edu> From: Warner Losh Date: Sun, 20 May 2018 12:14:31 -0600 X-Google-Sender-Auth: NszVWB7H5DVKDv1icnIV0p-5uD4 Message-ID: Subject: Re: gmtime is not POSIX compliant due to leap seconds To: Garrett Wollman Cc: FreeBSD Standards Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.26 X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 May 2018 18:14:33 -0000 On Sun, May 20, 2018 at 11:18 AM, Garrett Wollman wrote: > On May 20, 2018 1:08:13 PM EDT, Eitan Adler wrote: > > This means that gmtime ought not to be affected by leap seconds. > > If you are getting leap-second adjustments, then you are using a > nonstandard build of the data files with that feature enabled. Don't do > that if POSIX behavior is what you want. > If you have those options enabled, the times are TAI times, not UTC times, so the conversions are correct... Furthermore, leap seconds must die. Warner