Android Open Source - PersianDatePicker Persian Calendar Constants






From Project

Back to project page PersianDatePicker.

License

The source code is released under:

Apache License

If you think the Android project PersianDatePicker listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

/**
 * Persian Calendar see: http://code.google.com/p/persian-calendar/
   Copyright (C) 2012  Mortezaadi@gmail.com
   PersianCalendarConstants.java//from  ww  w .j av a 2 s .  c om
   
   Persian Calendar is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package ir.smartlab.persindatepicker.util;

/**
 * 
 * @author Morteza contact: <a
 *         href="mailto:Mortezaadi@gmail.com">Mortezaadi@gmail.com</a>
 * @version 1.0
 */
public class PersianCalendarConstants {

  // 00:00:00 UTC (Gregorian) Julian day 0,
  // 0 milliseconds since 1970-01-01
  public static final long MILLIS_JULIAN_EPOCH = -210866803200000L;
  // Milliseconds of a day calculated by 24L(hours) * 60L(minutes) *
  // 60L(seconds) * 1000L(mili);
  public static final long MILLIS_OF_A_DAY = 86400000L;

  /**
   * The JDN of 1 Farvardin 1; Equivalent to March 19, 622 A.D.
   */
  public static final long PERSIAN_EPOCH = 1948321;

  public static final String[] persianMonthNames = { "\u0641\u0631\u0648\u0631\u062f\u06cc\u0646", // Farvardin
      "\u0627\u0631\u062f\u06cc\u200c\u0628\u0647\u0634\u062a", // Ordibehesht
      "\u062e\u0631\u062f\u0627\u062f", // Khordad
      "\u062a\u06cc\u0631", // Tir
      "\u0645\u0631\u062f\u0627\u062f", // Mordad
      "\u0634\u0647\u0631\u06cc\u0648\u0631", // Shahrivar
      "\u0645\u0647\u0631", // Mehr
      "\u0622\u0628\u0627\u0646", // Aban
      "\u0622\u0630\u0631", // Azar
      "\u062f\u06cc", // Dey
      "\u0628\u0647\u0645\u0646", // Bahman
      "\u0627\u0633\u0641\u0646\u062f" // Esfand
  };

  public static final String[] persianWeekDays = { "\u0634\u0646\u0628\u0647", // Shanbeh
      "\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647", // Yekshanbeh
      "\u062f\u0648\u0634\u0646\u0628\u0647", // Doshanbeh
      "\u0633\u0647\u200c\u0634\u0646\u0628\u0647", // Sehshanbeh
      "\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647", // Chaharshanbeh
      "\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647", // Panjshanbeh
      "\u062c\u0645\u0639\u0647" // jome
  };

}




Java Source Code List

ir.smartlab.persindatepicker.PersianDatePicker.java
ir.smartlab.persindatepicker.util.PersianCalendarConstants.java
ir.smartlab.persindatepicker.util.PersianCalendarUtils.java
ir.smartlab.persindatepicker.util.PersianCalendar.java
ir.smartlab.persindatepicker.util.PersianDateParser.java
ir.smartlab.persindatepicker.util.TimeZones.java