georgian

Convert Jalali calendar to Georgian by PHP in CodeIgniter

泪湿孤枕 提交于 2019-12-22 06:38:45
问题 I need to store Date in Persian (Jalali) date in MySQL. I'm using CodeIgniter. I need something like this: $Date = Jalali_to_Georgian(1393,5,28) // Output: "2014/08/19" Do I need to create a new library for this? 回答1: It's generally better to stick to existing libs rather than writing your own one. Try, for example, jDateTime or Gregorian-Jalali-Date-Convertor. P.S. I never tried to use them myself, but first one looks much more solid. 回答2: First, Create a library in application/libraries

Convert Jalali calendar to Georgian by PHP in CodeIgniter

≡放荡痞女 提交于 2019-12-05 11:11:35
I need to store Date in Persian (Jalali) date in MySQL. I'm using CodeIgniter. I need something like this: $Date = Jalali_to_Georgian(1393,5,28) // Output: "2014/08/19" Do I need to create a new library for this? It's generally better to stick to existing libs rather than writing your own one. Try, for example, jDateTime or Gregorian-Jalali-Date-Convertor . P.S. I never tried to use them myself, but first one looks much more solid. First, Create a library in application/libraries named Calendar.php Class Calendar { function jalali_to_gregorian($j_y, $j_m, $j_d) { $g_days_in_month = array(31,

Writing speech-recognition engine [closed]

耗尽温柔 提交于 2019-11-26 13:54:45
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 8 years ago . So, like many others I decided to create my own speech-recognition engine. As it turned out, it's not easy at all, instead, it's