Re: [PATCH] emacs: derive correct timestamp in FCC unique name

Subject: Re: [PATCH] emacs: derive correct timestamp in FCC unique name

Date: Thu, 14 Jun 2012 12:35:46 -0400

To: Tomi Ollila, notmuch@notmuchmail.org

Cc:

From: Jesse Rosenthal


Hi, 

thanks for thinking this through.

On Thu, 14 Jun 2012, Tomi Ollila <tomi.ollila@iki.fi> wrote:
> Alternatives:
>
> 1) Use current patch, filenames will have extra '-' in 2038 on 32-bit
> systems.

Well, that assumes there is still the same arithmetic operations -- the
calendar issue will probably push them to either auto-convert to float
or use bignum. But still, assuming that in 2038, people are still on
32bit machines, it seems we should minimize the amount of things that
need to be fixed. 

So I agree that...

> 2) Drop 'timeid' and replace it with (float-time) in `format` call a few
> lines in original source after the patch context below -- No idea
> how (float-time) works on 32-bit systems after 2038.

is probably the best. They'll have to deal with their time_t (again,
assuming the unlikely existence of 32bit machines then) but this doesn't
depend on their arithemetic. 

I'll send a revision to this thread.

> I suggest option #2.
>
> Tomi

Thanks again,
Jesse

Thread: