[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [PATCH] Separate clocksum format for durations >= 1 day

From: Achim Gratz
Subject: Re: [O] [PATCH] Separate clocksum format for durations >= 1 day
Date: Mon, 05 Nov 2012 12:13:25 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)

Toby Cubitt writes:
> A format string isn't sufficient. It requires the number of time
> components (days, hours, minutes, etc.) to be fixed in advance. Whereas a
> function can decide whether to display e.g. days+hours or hours+minutes
> depending on whether the time is longer or shorter than 24h.

You can define the format specification with any semantics you want,
including alternatives like those suggested above.

> A defcustom that can either be a format string *or* a function might be
> an option.

What I'm saying is that this whole business of exposing formatting
functions to the user is somewhat superfluous.  Whether different formats
dispatch their work to different (internal) functions is another matter
— if it makes implementation easier, just do it.

+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

SD adaptation for Waldorf microQ V2.22R2:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]