strpos(Yii::app()->locale->getTimeFormat(), 'H:') !== false ? false : true
What exactly you're proposing here?
Enh #1971: Added CLocale::getHourMeridian defining hour meridian type…
… for the current locale
This method makes no sense and is not intuitive... returns true/false for 12/24h format ???
For example, this feature can be used to specify the type for the meridian hour https://github.com/clevertech/YiiBooster/blob/master/widgets/TbTimePicker.php#L29. Or taken from the locale or a setting.
@mdomba This functionality really required for many timepicker, who are just beginning to emerge. If the format of true / false is bad, tell what will be the best for this method.
I did not encounter yet this need so I don't know about this...
in YiiBooster case there is true/false for 12/24 hour format, are you sure it's the same for those other emerging timepickers?
If it's not a standard why not just use strpos(Yii::app()->locale->getTimeFormat(), 'H:') in your case.
I just offered this functionality, this method seemed to me important.
For example it can also be used here:
I also think it may be necessary to determine the type of hours, depending on the locale and elsewhere.
such similar functionality: #1972
which also is used only to determine the first day of the week on the calendar, just calendars today are very well developed, and there is no time.
Then decides it is necessary, obavlyaem, do not, I close my ticket.