From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: * X-Spam-Status: No, score=1.5 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, NICE_REPLY_A,RDNS_NONE autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 2611 invoked from network); 2 Oct 2021 09:10:00 -0000 Received: from unknown (HELO 4ess.inri.net) (216.126.196.42) by inbox.vuxu.org with ESMTPUTF8; 2 Oct 2021 09:10:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Received: from smtp.vivaldi.net ([31.209.137.12]) by 4ess; Fri Oct 1 10:25:02 -0400 2021 Received: from localhost (localhost [127.0.0.1]) by smtp.vivaldi.net (Postfix) with ESMTP id DB9CFBD0AA for <9front@9front.org>; Fri, 1 Oct 2021 14:24:57 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.vivaldi.net DB9CFBD0AA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivaldi.net; s=default; t=1633098297; bh=6jKKDP5a8fhRkZ/Z9mIMFmZvusQaGsiVB5MGw6kPMtg=; h=Date:Subject:To:References:From:In-Reply-To:From; b=Ufrg/294fBaAgLA0z6GiF7NOmpJiujD3R3iBlM0eWP5o+Wx6Td2SZ2smwsFKv19xn fWH4rFlI6T8gT3xlDS0dhpECsFGZmg36us+bRAMGmeCGEFDkcfjYPKXWOBWHYXTX4j i+u7VC3ib+3AoMGIW7F5zxPaYVypQD5LGBO5zdxOLv7BkgB3LCkiDbMhlH+YUarjAC uo7O6C6opuh8tB/dl+OaT0FgfsDiHoVAOJ3R1h1n1sAnvtprP/b1gwhSJnZnAwnqg0 +Sml16OwZItm3Htcejnr8Q7CqVjPEHqmFaLBmKadKxviYLQcZ0dqesfNt2vDTcDYBF MTX1UDfZ+AAeQ== X-Virus-Scanned: Debian amavisd-new at smtp.vivaldi.net Received: from smtp.vivaldi.net ([127.0.0.1]) by localhost (mxo.viv.dc01 [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id r-4Tc3rq40Om for <9front@9front.org>; Fri, 1 Oct 2021 14:24:53 +0000 (UTC) Message-ID: DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.vivaldi.net 85711BD026 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivaldi.net; s=default; t=1633098293; bh=6jKKDP5a8fhRkZ/Z9mIMFmZvusQaGsiVB5MGw6kPMtg=; h=Date:Subject:To:References:From:In-Reply-To:From; b=WaScOuWxHM30NDUpAzvf8PbG4jnU0JiWLEwjXz9acxQ/TGe+hiybKcFSLp7ZE9+7T fxUuOvBigTCAnwXF2x0yyst7JkS+vLLStZo9ZyYTAAr5nNmv6qLZt2EZs7lEiqr0Q9 HpcTyGab5lr0AHeOpoG3bTIM5fcFFX6TA6VOpEV5Ie5giFmAc8T2b1U6TGDMpM1AAw eoRBLL/ggiDVU2e5tym0zdY+nPI74e3/+0boYsY3i9PFAMnSQ9bjPMhqhmsqEsyipS K99MKv0HKVcE/vPPvx0cqNqBrBUmnhwZKGXPs+Qn9whC3AbIj32N9sZA9Us3lRiyz9 RFsx1TND0NfQA== Date: Fri, 1 Oct 2021 08:24:53 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.1 Content-Language: en-US To: 9front@9front.org References: From: lyndsay In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: generic SQL CMS GPU cloud Subject: Re: [9front] quick tmdate question Reply-To: 9front@9front.org Precedence: bulk awesome, that should be fine for me; all of the times being processed=20 have to be put in by the user and the users probably won't want to use a=20 calendar other than gregorian so almost all input, even before 1582,=20 would probably end up being in proleptic gregorian format anyway. at=20 least, that's what the mathematical equations i put in are assuming!=20 i'll also put a note in the help and manual for the software juuuust to=20 make sure. thanks! lyndsay On 9/30/21 23:15, ori@eigenstate.org wrote: > Quoth lyndsay : >> can't find a clear answer in tmdate(2)=C2=A0 - i'm writing a program (= in c) >> that needs a way to store and parse any arbitrary time AD. will those = be >> properly dealt with if i store times in Tm and parse user input with >> tmparse() or should i write my own function? > If the proleptic gregorian calendar is enough, then > tmdate should work for you. It does not handle the > (locale-specific!) calendar changeovers. Our timezone > information simply doesn't encode calendar changes. > > I'm not even sure if the IANA timezone database encodes > calendar changes. > > I'd suggest using the proleptic gregorian calendar, and > converting from it as late as possible. Ideally never. > > https://en.wikipedia.org/wiki/List_of_adoption_dates_of_the_Gregorian_c= alendar_by_country >