9front - general discussion about 9front
 help / color / mirror / Atom feed
From: ori@eigenstate.org
To: 9front@9front.org
Subject: Re: [9front] quick tmdate question
Date: Fri, 01 Oct 2021 01:15:13 -0400	[thread overview]
Message-ID: <AD48C30A020D4C6BB91161CAEA3C4AC8@eigenstate.org> (raw)
In-Reply-To: <b1663f57-0ef3-b043-c336-6ddac79a6160@vivaldi.net>

Quoth lyndsay <lyndsay@vivaldi.net>:
> can't find a clear answer in tmdate(2)  - 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_calendar_by_country


  parent reply	other threads:[~2021-10-01  7:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-30 15:05 lyndsay
2021-10-01  1:54 ` Kurt H Maier
2021-10-01  5:15 ` ori [this message]
2021-10-01 14:24   ` lyndsay

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AD48C30A020D4C6BB91161CAEA3C4AC8@eigenstate.org \
    --to=ori@eigenstate.org \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).