Name

global.ScheduleDateTime

Description

Proxy class to allow limited access to the ScheduleDateTime object within the sandbox

Script

var ScheduleDateTime = Class.create();

ScheduleDateTime.prototype = {
initialize : function(date_time) {
  if (JSUtil.nil(date_time))
     this.dt = new GlideScheduleDateTime();
  else 
     this.dt = new GlideScheduleDateTime(date_time);
},

convertTimeZone : function(from, to) {
  return this.dt.convertTimeZone(from, to);
},
 
setIncludeZFormat : function(booleanValue) {
  return this.dt.setIncludeZFormat(booleanValue);
}
}

Sys ID

d1e159ccc0a80202005e464b84032f44

Offical Documentation

Official Docs: