UNPKG

vox-core

Version:

Runtime de aplicaciones multiplataforma

48 lines (34 loc) 1.11 kB
var SG= core.System.Globalization; var Util= core.VW.Util; var GregorianCalendar= module.exports=function(/* GregorianCalendarType */type){ if(arguments.length<1){ type=SG.GregorianCalendarTypes.Localized; } this.m_type= type; } GregorianCalendar.prototype = Object.create(SG.Calendar.prototype); GregorianCalendar.prototype.__proto__=SG.Calendar.prototype GregorianCalendar.ADEra=1; /* INSTANCE PROPERTIES */ GregorianCalendar.prototype.get_algorithmType=function(){ return SG.CalendarAlgorithmType.SolarCalendar; } GregorianCalendar.prototype.get_calendarType=function(){ return this.m_type; } GregorianCalendar.prototype.get_eras=function(){ return [1]; } GregorianCalendar.prototype.get_ID= function(){ return this.calendarType+0; } GregorianCalendar.prototype.getEra= function(/*DateTime*/date){ return 1; } GregorianCalendar.prototype.getLeapMonth= function(/*int*/year){ return 0; } GregorianCalendar.prototype.possibleIds= function(){ return [0,1,2,9,10,11,12]; } Util.createProperties(GregorianCalendar,GregorianCalendar.prototype);