[asterisk-dev] optional time formatting

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Wed Nov 8 00:33:19 MST 2006


On Wednesday 08 November 2006 01:06, Tzafrir Cohen wrote:
> I was doing some house cleaning, and found an old and not well-tested
> patch:
>
> http://bugs.digium.com/view.php?id=8309
>
> While submitting it, I remembered the problem I had with it:
>
> the Hebrew prompt for time is (translated literally) for 9:03 "nine
> [hours] and three [minutes]", whereas 9:00 is pronounced simply as
> simple "nine [hours]".
>
> Barring very ugly calculations around the call to
> st_say_date_with_format , the caller cannot handle this.
>
> However the conditional "and" should not be part of the minutes (M) or
> of the hours (H) in case you want to use them separately. And I don't
> want to introduce my own formatting. So how do I format the time?

Use the notation for 'R' and specify your own default format string.

-- 
Tilghman


More information about the asterisk-dev mailing list