Represents a time interval.
Namespace: MindFusion.Scheduling
File: TimeSpan.js
JavaScript Copy Code |
---|
// class |
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.
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; |
MindFusion.Scheduling.TimeSpan