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/islamic/Date.js

  • Provides:

    • dojox.date.islamic.Date
  • Requires:

    • dojo.date in common
  • dojox.date.islamic.Date

    • type
      Function
    • summary
      The component defines the Islamic (Hijri) Calendar Object
    • description
      This module is similar to the Date() object provided by JavaScript
    • example
      	dojo.require("dojox.date.islamic.Date");
      
      	var date = new dojox.date.islamic.Date();
      	document.writeln(date.getFullYear()+'\'+date.getMonth()+'\'+date.getDate());
  • dojox.date.islamic.Date._date

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

    • type
      Object
  • dojox.date.islamic.Date._year

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

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

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

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

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

    • type
      Object
  • dojox.date.islamic.Date._GREGORIAN_EPOCH

    • type
      Number
  • dojox.date.islamic.Date._ISLAMIC_EPOCH

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

    • constructor - constructor
    • type
      Function
    • summary
      This is the constructor
    • description
      This function initialize the date object values
    • example
      		var date1 = new dojox.date.islamic.Date();
      
      		var date2 = new dojox.date.islamic.Date("12\2\1429");
      
      		var date3 = new dojox.date.islamic.Date(date2);
      
      		var date4 = new dojox.date.islamic.Date(1429,2,12);
  • dojox.date.islamic.Date.getDate

    • summary
      This function returns the date value (1 - 30)
    • example
      		var date1 = new dojox.date.islamic.Date();
      
      		document.writeln(date1.getDate);
    • type
      Function
  • dojox.date.islamic.Date.getMonth

    • summary
      This function return the month value ( 0 - 11 )
    • example
      		var date1 = new dojox.date.islamic.Date();
      
      		document.writeln(date1.getMonth()+1);
    • type
      Function
  • dojox.date.islamic.Date.getFullYear

    • summary
      This function return the Year value
    • example
      		var date1 = new dojox.date.islamic.Date();
      
      		document.writeln(date1.getFullYear());
    • type
      Function
  • dojox.date.islamic.Date.getDay

    • summary
      This function return Week Day value ( 0 - 6 )
    • example
      		var date1 = new dojox.date.islamic.Date();
      
      		document.writeln(date1.getDay());
    • type
      Function
  • dojox.date.islamic.Date.getHours

    • summary
      returns the Hour value
    • type
      Function
  • dojox.date.islamic.Date.getMinutes

    • summary
      returns the Minuites value
    • type
      Function
  • dojox.date.islamic.Date.getSeconds

    • summary
      returns the seconde value
    • type
      Function
  • dojox.date.islamic.Date.getMilliseconds

    • summary
      returns the Milliseconds value
    • type
      Function
  • dojox.date.islamic.Date.setDate

    • parameters:
      • date: (typeof number)
    • summary
      This function sets the Date
    • example
      		var date1 = new dojox.date.islamic.Date();
      		date1.setDate(2);
    • type
      Function
  • dojox.date.islamic.Date.setFullYear

    • parameters:
      • year: (typeof number)
    • summary
      This function set Year
    • example
      		var date1 = new dojox.date.islamic.Date();
      		date1.setYear(1429);
    • type
      Function
  • dojox.date.islamic.Date.setMonth

    • parameters:
      • month: (typeof number)
    • summary
      This function set Month
    • example
      		var date1 = new dojox.date.islamic.Date();
      		date1.setMonth(2);
    • type
      Function
  • dojox.date.islamic.Date.setHours

    • summary
      set the Hours
    • type
      Function
  • dojox.date.islamic.Date.setMinutes

    • parameters:
      • minutes: (typeof number)
    • summary
      set the Minutes
    • type
      Function
  • dojox.date.islamic.Date.setSeconds

    • parameters:
      • seconds: (typeof number)
    • summary
      set Seconds
    • type
      Function
  • dojox.date.islamic.Date.setMilliseconds

    • parameters:
      • milliseconds: (typeof number)
    • summary
      set the Millisconds
    • type
      Function
  • dojox.date.islamic.Date.toString

    • summary
      This returns a string representation of the date in "DDDD MMMM DD YYYY HH:MM:SS" format
    • example
      		var date1 = new dojox.date.islamic.Date();
      		document.writeln(date1.toString());
    • type
      Function
  • dojox.date.islamic.Date.toGregorian

    • summary
      This returns the equevalent Grogorian date value in Date object
    • example
      		var dateIslamic = new dojox.date.islamic.Date(1429,11,20);
      		var dateGregorian = dateIslamic.toGregorian();
    • type
      Function
  • dojox.date.islamic.Date.fromGregorian

    • parameters:
      • gdate: (typeof Date)
    • summary
      This function returns the equivalent Islamic Date value for the Gregorian Date
    • example
      		var dateIslamic = new dojox.date.islamic.Date();
      		var dateGregorian = new Date(2008,10,12);
      		dateIslamic.fromGregorian(dateGregorian);
    • type
      Function
  • dojox.date.islamic.Date.valueOf

    • summary
      This function returns The stored time value in milliseconds
      since midnight, January 1, 1970 UTC
    • type
      Function
  • dojox.date.islamic.Date._yearStart

    • parameters:
      • year: (typeof Number)
    • summary
      return start of Islamic year
    • type
      Function
  • dojox.date.islamic.Date._monthStart

    • parameters:
      • year: (typeof Number)
      • month: (typeof Number)
    • summary
      return the start of Islamic Month
    • type
      Function
  • dojox.date.islamic.Date._civilLeapYear

    • parameters:
      • year: (typeof Number)
    • summary
      return Boolean value if Islamic leap year
    • type
      Function
  • dojox.date.islamic.Date.getDaysInIslamicMonth

    • parameters:
      • month: (typeof Number)
        dojox.date.islamic.Date
      • year: (typeof Number)
    • summary
      returns the number of days in the given Islamic Month
    • returns
      dojox.date.islamic.Date
    • type
      Function
  • dojox.date.islamic.Date._mod

    • parameters:
      • a
      • b
    • type
      Function
  • dojox.date.islamic

    • type
      Object
  • dojox.date

    • type
      Object
  • dojox

    • type
      Object