Search
TimeSpan Class
Remarks See Also
 






Represents a time interval.

Namespace: MindFusion.Scheduling
File: TimeSpan.js

 Syntax

JavaScript  Copy Code

// class
TimeSpan.prototype = {}

 Remarks

Use TimeSpan.fromDays, TimeSpan.fromMilliseconds, TimeSpan.fromHours, TimeSpan.fromMinutes and TimeSpan.fromSeconds methods if you need tp provide a TimeSpan value but have only the given amount of time it should span. 

TimetableSettings.cellTime uses TimeSpan to set its value.

 Example

The following code uses the TimeSpan class to specify the interval of time between the time the reminder is triggered and the item is due to start:

JavaScript  Copy Code
var p = MindFusion.Scheduling;

var reminder = new p.Reminder();
reminder.message = "Speaking of the " + item.subject + ", go!!";
reminder.type = p.ReminderType.Leading;
reminder.timeInterval = p.TimeSpan.fromMinutes(1);
item.reminder = reminder;

 Inheritance Hierarchy

MindFusion.Scheduling.TimeSpan

 See Also