persian-calendar

Is there a way to show Persian date in x-axis of Matplotlib plot

天涯浪子 提交于 2020-08-20 03:56:26
问题 I want to plot a dataframe in which the index consists of datetime values based on Iranian calendar. I want to set the x-axis labels as following: import matplotlib.dates as mdates axes.scatter(df_day.index.values, df_day.loc[:, item], marker='.') axes.xaxis.set_major_formatter(dates.DateFormatter('%d-%b %H:%M')) Consider that I want to print the months 's name in Persian instead of default value of Georgian calendar such as Jun or Aug . I used jdatetime to convert the datetime in persian

How to compare two persian date to find out which one is greater?

北城余情 提交于 2019-12-24 00:38:15
问题 I want to compare two persian dates to find out which one is greater, I use this function : public static List<MatchDrawHistory> GetAllMatchDrawHistory(string startDate, string endDate) { using (var db= new ReceiveSendEntitiesV5()) { var matchDrawList = db.MatchDrawHistories.Where(x => String.CompareOrdinal(x.DrawStartDate,startDate)>=0 && String.CompareOrdinal(x.DrawEndDate , endDate) <=0).ToList(); return matchDrawList; } } but it does not work, how can I do it? EDIT: DrawStartDate and

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,

Non-Gregorian Calendar with jQuery FullCalendar

有些话、适合烂在心里 提交于 2019-11-29 08:20:44
Does anyone know how can one add a non-gregorian calendar support to jquery FullCalendar ? For example Persian Calendar (Jalalai or Shamsi calendar). I don't know where to start the customization and what exact classes and scripts are affected by such a feature. I have implemented conversion script in js. I think that there isn't any built-in support. I'm looking for solution so that I myself can implement it myself. Jalali calendar (Persian): 12 month 6 first months are 31 days 5 next months are 30 days The last month is 29 or 30 days based on being leap year. The year starts on first day of

How to implement Persian Calendar

岁酱吖の 提交于 2019-11-28 01:14:35
问题 Is there any implementation of Persian calendar DatePicker on JavaFx? There is no Persian chronology to use on DatePicker to achieve a Persian calendar 回答1: I have now developed a ready-to-use calendar picker which also offers a persian calendar. It was originally inspired by the nice work of Christian Schudt, but completely rewritten and enhanced. Just download my library Time4J-v4.20 (or later, available in Maven) and use this code demo: CalendarPicker<PersianCalendar> picker = picker