All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.googlecode.wicket.kendo.ui.scheduler.SchedulerBehavior.js Maven / Gradle / Ivy

There is a newer version: 10.0.0-M1
Show newest version
function calculateKendoSchedulerViewEndPeriod(date) {
    var correctedDate = new Date(date);
    var timeMillis = (date.getHours() * kendo.date.MS_PER_HOUR) +
           		 	 (date.getMinutes() * kendo.date.MS_PER_MINUTE) +
           		 	 (date.getSeconds() * 1000);
    
    if (!timeMillis) {
    	timeMillis = kendo.date.MS_PER_DAY - 1;
    }
      
    correctedDate.setTime(date.getTime() + timeMillis);
      
    return correctedDate;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy