Warning: Use of undefined constant Symbol - assumed 'Symbol' (this will throw an Error in a future version of PHP) in /mnt/new-ebs/workbench-106550/lib/dojo/util/docscripts/lib/parser2/dojo2.inc on line 215 Warning: Use of undefined constant JavaScriptSymbol - assumed 'JavaScriptSymbol' (this will throw an Error in a future version of PHP) in /mnt/new-ebs/workbench-106550/lib/dojo/util/docscripts/lib/parser2/dojo2.inc on line 215

dojox/date/hebrew/Date.js

  • Provides:

    • dojox.date.hebrew.Date
  • Requires:

    • dojox.date.hebrew.numerals in common
  • dojox.date.hebrew.Date

    • type
      Function
    • summary
      A Date-like object which implements the Hebrew calendar
    • example
      	dojo.require("dojox.date.hebrew.Date");
      
      	var date = new dojox.date.hebrew.Date();
      	console.log(date.getFullYear()+'\'+date.getMonth()+'\'+date.getDate());
    • description
      A Date-like object which implements the Hebrew Calendar.  Because this object
      implements many of the same methods as the native JavaScript Date object, which
      implements the Gregorian calendar, it can often be used its place.  Note that
      this object does not extend Date or use its prototype.
  • dojox.date.hebrew.Date._MONTH_LENGTH

    • type
      Array
  • dojox.date.hebrew.Date._MONTH_START

    • type
      Array
  • dojox.date.hebrew.Date._LEAP_MONTH_START

    • type
      Array
  • dojox.date.hebrew.Date._GREGORIAN_MONTH_COUNT

    • type
      Array
  • dojox.date.hebrew.Date._date

    • type
      Object
  • dojox.date.hebrew.Date._month

    • type
      Number
  • dojox.date.hebrew.Date._year

    • type
      String
  • dojox.date.hebrew.Date._hours

    • type
      Object
  • dojox.date.hebrew.Date._minutes

    • type
      Object
  • dojox.date.hebrew.Date._seconds

    • type
      Object
  • dojox.date.hebrew.Date._milliseconds

    • type
      Object
  • dojox.date.hebrew.Date._day

    • type
      Number
  • dojox.date.hebrew.Date.constructor

    • constructor - constructor
    • type
      Function
    • summary
      initialize the date object value
    • example
      		var date1 = new dojox.date.hebrew.Date();
      
      		var date2 = new dojox.date.hebrew.Date(date1);
      
      		var date3 = new dojox.date.hebrew.Date(5768,2,12);
  • dojox.date.hebrew.Date.getDate

    • returns
      int
    • summary
      returns the date value (1 - 30)
    • example
      		var date1 = new dojox.date.hebrew.Date();
      
      		console.log(date1.getDate());
    • type
      Function
  • dojox.date.hebrew.Date.getDateLocalized

    • parameters:
      • locale: (typeof String)
    • summary
      returns the date value as hebrew numerals for the Hebrew locale,
      a number for all others.
    • example
      		var date1 = new dojox.date.hebrew.Date();
      
      		console.log(date1.getDate());
    • type
      Function
  • dojox.date.hebrew.Date.getMonth

    • summary
      returns the month value (0 - 12)
    • description
      the result is the index in the month array:
      0. Tishri
      1. Heshvan
      2. Kislev
      3. Tevet
      4. Shevat
      5. Adar I (leap years only)
      6. Adar
      7. Nisan
      8. Iyar
      9. Sivan
      10. Tammuz
      11.	Av
      12. Elul - 12
      For non leap years, for months after Shevat, the actual position of
      the month in the year (used for short format) is less than
      the "absolute" index by 1.
    • example
      		var date1 = new dojox.date.hebrew.Date(5769, 6, 1);
      
      		console.log(date1.getMonth()+1);
      		>> 7
    • type
      Function
  • dojox.date.hebrew.Date.getFullYear

    • summary
      returns the Year value
    • example
      		var date1 = new dojox.date.hebrew.Date(5769, 6, 1);
      
      		console.log(date1.getFullYear());
      		>> 5769
    • type
      Function
  • dojox.date.hebrew.Date.getHours

    • summary
      returns the hour value
    • type
      Function
  • dojox.date.hebrew.Date.getMinutes

    • summary
      returns the minutes value
    • type
      Function
  • dojox.date.hebrew.Date.getSeconds

    • summary
      returns the seconds value
    • type
      Function
  • dojox.date.hebrew.Date.getMilliseconds

    • summary
      returns the milliseconds value
    • type
      Function
  • dojox.date.hebrew.Date.setDate

    • parameters:
      • date: (typeof number)
    • summary
      sets the date number for a given month
    • example
      		var date1 = new dojox.date.hebrew.Date(5769, 6, 1);
      		date1.setDate(2);
    • type
      Function
  • dojox.date.hebrew.Date.setFullYear

    • parameters:
      • year: (typeof number)
      • month: (typeof number)
      • date: (typeof number)
    • summary
      set the year
    • example
      		var date1 = new dojox.date.hebrew.Date();
      		date1.setFullYear(5768);
      		date1.setFullYear(5768, 1, 1);
    • type
      Function
  • dojox.date.hebrew.Date.setMonth

    • parameters:
      • month: (typeof number)
    • summary
      sets the month.  You should use "absolute" index in the month array:
      0. Tishri
      1. Heshvan
      2. Kislev
      3. Tevet
      4. Shevat
      5. Adar I (leap years only)
      6. Adar
      7. Nisan
      8. Iyar
      9. Sivan
      10. Tammuz
      11.	Av
      12. Elul - 12
      For non leap years, for months after Shevat, the actual position of
      the month in the year (used for short format) is less than
      the "absolute" index by 1.
    • example
      		var date1 = new dojox.date.hebrew.Date();
      		date1.setMonth(0); //first month
    • type
      Function
  • dojox.date.hebrew.Date.setHours

    • summary
      sets the hour
    • description
      Sets the hour and optionally minutes, seconds, milliseconds also.
    • example
      		var date1 = new dojox.date.hebrew.Date();
      		date1.setHours(12, 30, 0, 0);
    • type
      Function
  • dojox.date.hebrew.Date.setMinutes

    • parameters:
      • minutes: (typeof Number)
    • summary
      sets the minutes (0-59)
    • type
      Function
  • dojox.date.hebrew.Date.setSeconds

    • parameters:
      • seconds: (typeof Number)
    • summary
      sets the seconds (0-59)
    • type
      Function
  • dojox.date.hebrew.Date.setMilliseconds

    • parameters:
      • milliseconds: (typeof Number)
    • summary
      sets the milliseconds
    • type
      Function
  • dojox.date.hebrew.Date._setDay

    • type
      Function
  • dojox.date.hebrew.Date.toString

    • returns
      String
    • summary
      returns a string representation of the date in "dd, MM, yyyy HH:mm:ss" format
    • description
      returns a string representation of the date in "dd, MM, yyyy HH:mm:ss" format (all numeric)
      For user presentation, use dojox.date.hebrew.locale.format which will present in the appropriate language
      and format.  toString() language- and culturally-specific conventions to keep this module free of
      dependencies on dojox.date.locale and dojo.cldr.
    • example
      		var date1 = new dojox.date.hebrew.Date(5769, 6, 1);
      		console.log(date1.toString());
      		>>> "1, 6, 5769 0:0:0"
    • type
      Function
  • dojox.date.hebrew.Date.getDaysInHebrewMonth

    • parameters:
      • month: (typeof Number)
      • year: (typeof Number)
    • summary
      returns the number of days in the given month and year
    • type
      Function
  • dojox.date.hebrew.Date._yearType

    • parameters:
      • year: (typeof Number)
    • type
      Function
  • dojox.date.hebrew.Date._handleGetYearLength

    • parameters:
      • eyear: (typeof number)
    • type
      Function
  • dojox.date.hebrew.Date._startOfYear

    • parameters:
      • year: (typeof number)
    • type
      Function
  • dojox.date.hebrew.Date.isLeapYear

    • parameters:
      • year: (typeof Number)
    • summary
      Determines if the year (argument) is a leap year
    • description
      The Leap year contains additional month adar sheni
      
      return (year * 12 + 17) % 19 >= 12;
    • type
      Function
  • dojox.date.hebrew.Date.fromGregorian

    • parameters:
      • gdate: (typeof Date)
    • summary
      This function sets this Date to the Hebrew Date corresponding to the Gregorian Date
    • example
      		var dateHebrew = new dojox.date.hebrew.Date();
      		var dateGregorian = new Date(2008,10,12);
      		dateHebrew.fromGregorian(dateGregorian);
    • type
      Function
  • dojox.date.hebrew.Date._computeHebrewFields

    • parameters:
      • gdate: (typeof Date)
    • type
      Function
  • dojox.date.hebrew.Date.toGregorian

    • returns
      Date
    • summary
      returns the equivalent Grogorian date value as a native Date object
    • example
      		var dateHebrew = new dojox.date.hebrew.Date(5768,11,20);
      		var dateGregorian = dateHebrew.toGregorian();
    • type
      Function
  • dojox.date.hebrew.Date._floorDivide

    • parameters:
      • numerator
      • denominator
      • remainder
    • type
      Function
  • dojox.date.hebrew.Date.getDay

    • summary
      returns weekday value (0 - 6)
    • example
      		var date1 = new dojox.date.hebrew.Date();
      
      		console.log(date1.getDay());
    • type
      Function
  • dojox.date.hebrew.Date._getJulianDayFromGregorianDate

    • parameters:
      • gdate
    • summary
      returns the Julian day of a Gregorian date
    • type
      Function
  • dojox.date.hebrew.Date.valueOf

    • type
      Function
  • dojox.date.hebrew

    • type
      Object
  • dojox.date

    • type
      Object
  • dojox

    • type
      Object