From: tlaronde@polynum.com
To: 9fans <9fans@9fans.net>
Subject: Re: [9fans] libdate
Date: Sun, 26 Apr 2020 03:54:21 +0200 [thread overview]
Message-ID: <20200426015421.GA2501@polynum.com> (raw)
In-Reply-To: <756B454F0747C231D31E8E3D3AFA3113@eigenstate.org>
Hello,
On Sat, Apr 25, 2020 at 05:54:30PM -0700, ori@eigenstate.org wrote:
> Date handling on plan 9 is almost adequate today if you don't
> have to parse dates or deal with timezones, and don't do
> multithreading. Otherwise, it's difficult to get right, and
> we often don't.
>
> We've got a crappy home-rolled date parser in seconds(1),
> a few in the upas source tree to deal with mail formats,
> and git9 has a few hacks around this as well.
>
> Out of tree, joe9 has been trying to write code that takes
> stock information in one timezone and moves them to another,
> and our APIs there are completely inadequate.
>
> So, I tried to write a library that is adequate, without
> being complicated.
>
Just out of curiosity (I may have missed the point): since this is not
heavily system dependent, and more user related, and for the sake of
APE, did you consider the standard C and the POSIX interfaces?
> The code lives here:
>
> https://git.eigenstate.org/ori/date.git
>
> I'll probably be merging in the changes between Tmd and Tm
> soon, and committing to 9front, possibly even as part of libc.
>
> Some additional work is probably going to be needed to convert
> from IANA zoneinfo to actually bring our timezone data up to
> date. We may also need some timezone info format changes to
> handle political (and leap second) changes.
>
>
> The manpage is attached below for review:
FWIW, a typo in the sample code, the closing bracket in the assignation
before comparison is missing.
> if((zl = tmgetzone("local") == nil)
^
(in all the chunks).
Thank you for the work!
Best regards,
--
Thierry Laronde <tlaronde +AT+ polynum +dot+ com>
http://www.kergis.com/
http://www.sbfa.fr/
Key fingerprint = 0FF7 E906 FBAF FE95 FD89 250D 52B1 AE95 6006 F40C
next prev parent reply other threads:[~2020-04-26 1:54 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-26 0:54 libdate ori
2020-04-26 1:54 ` tlaronde [this message]
2020-04-26 3:08 ` [9fans] libdate ori
2020-04-26 3:14 ` Calvin Morrison
2020-04-26 3:41 ` cinap_lenrek
2020-04-27 0:18 ` ori
2020-05-01 0:46 ` ori
2020-05-01 3:15 ` ori
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=20200426015421.GA2501@polynum.com \
--to=tlaronde@polynum.com \
--cc=9fans@9fans.net \
/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).