Search
TimeSpan Constructor
See Also
 






Initializes a new instance of the TimeSpan class.

Namespace: MindFusion.Scheduling
File: TimeSpan.js

 Syntax

JavaScript  Copy Code

function TimeSpan (ticks)

 Parameters

ticks

Number. The number of ticks that represent the value of the time span.

 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;

 See Also