Re: Remove redundant AM/PM when formatting a time range?

2014-04-15 Thread Ben Kazez
>> I’m trying to create a compact time range format, like “2am-4pm” or >> “2-5:30pm”. I am constructing the format string using >> -dateFormatFromTemplate:options:locale:, omitting the minutes from the >> template if that component is zero. Is there an internationalization-safe >> way that I ca

Re: Remove redundant AM/PM when formatting a time range?

2014-04-11 Thread Jens Alfke
On Apr 11, 2014, at 8:41 AM, Ben Kazez wrote: > I’m trying to create a compact time range format, like “2am-4pm” or > “2-5:30pm”. I am constructing the format string using > -dateFormatFromTemplate:options:locale:, omitting the minutes from the > template if that component is zero. Is there a

Remove redundant AM/PM when formatting a time range?

2014-04-11 Thread Ben Kazez
Hello, I’m trying to create a compact time range format, like “2am-4pm” or “2-5:30pm”. I am constructing the format string using -dateFormatFromTemplate:options:locale:, omitting the minutes from the template if that component is zero. Is there an internationalization-safe way that I can remov