-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjsplanner.d.ts
2077 lines (2074 loc) · 84 KB
/
jsplanner.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Type definitions for MindFusion.Scheduling for JavaScript
// Project: https://www.mindfusion.eu/javascript-scheduler.html
// Definitions by: MindFusion <https://www.mindfusion.eu>
// Copyright (c) 2018-2020, MindFusion LLC - Bulgaria.
declare module "scheduler-library"
{
export = MindFusion.Scheduling;
}
declare namespace MindFusion.Scheduling
{
/** Describes the action that caused a CollectionChanged event. */
enum NotifyCollectionChangedAction
{
/** Represents adding to the collection. */
Add = 1,
/** Represents removing from the collection. */
Remove = -1,
/** Represents resetting the collection. */
Reset = 0
}
/** Specifies the type of view to display in a calendar control. */
enum CalendarView
{
/** The calendar displays several months in a grid. The days of each month are visible too. */
MonthRange = 0,
/** The calendar displays a single month at a time. The days of the month are displayed in a grid. */
SingleMonth = 1,
/** The calendar displays a grid of days, with the columns representing the week days from Monday to Sunday and the rows representing weeks. */
WeekRange = 2,
/** The calendar displays several seconds, minutes, hours, days, weeks, months or years in a row. */
List = 3,
/** The calendar displays a timetable where each row represents a fixed arbitrary time interval and each column represents a day. */
Timetable = 4,
/** The calendar displays the distribution of resources over a period of time. */
ResourceView = 5
}
/** Specifies the type of a timeline in a Resource view. */
enum ResourceViewTimeline
{
/** Indicates the top timeline. */
Top = 0,
/** Indicates the middle timeline. */
Middle = 1,
/** Indicates the bottom timeline. */
Bottom = 2
}
/** Specifies a time resolution. */
enum TimeUnit
{
/** Specifies seconds. */
Second = 0,
/** Specifies minutes. */
Minute = 1,
/** Specifies hours. */
Hour = 2,
/** Specifies days. */
Day = 3,
/** Specifies weeks. */
Week = 4,
/** Specifies months. */
Month = 5,
/** Specifies years. */
Year = 6
}
/** Specifies the display format of a day of the week. */
enum DayOfWeekFormat
{
/** Only the first letter of the name of the day is displayed. */
SingleLetter = 0,
/** The first three letters of the day of the week are displayed. */
Abbreviated = 1,
/** The complete name of the day of the week is displayed. */
Full = 2
}
/** Specifies the appearance of the calendar's main header. */
enum MainHeaderStyle
{
/** The header is not displayed. */
None = 0,
/** The header displays a title. */
Title = 1,
/** The header displays navigation buttons.. */
Buttons = 2
}
/** Specifies the appearance of a vertical header in the calendar. */
enum VerticalHeaderStyle
{
/** The header is not displayed. */
None = 0,
/** The header is displayed to the left side of the calendar. */
Left = 1,
/** The header is displayed to the right side of the calendar. */
Right = 2
}
/** Specifies the appearance of a horizontal header in the calendar. */
enum HorizontalHeaderStyle
{
/** The header is not displayed. */
None = 0,
/** The header is displayed to the top side of the calendar. */
Top = 1,
/** The header is displayed to the bottom side of the calendar. */
Bottom = 2
}
/** Specifies orientation for calendar elements. */
enum Orientation
{
/** Indicates a horizontal orientation. */
Horizontal = 0,
/** Indicates a vertical orientation. */
Vertical = 1
}
/** Specifies the priority of a task. */
enum TaskPriority
{
/** Indicates low task priority. */
Low = 0,
/** Indicates normal task priority. */
Normal = 1,
/** Indicates high task priority. */
High = 2
}
/** Specifies status values for a task. */
enum TaskStatus
{
/** Indicates that the task has not started yet. */
NotStarted = 0,
/** Indicates a task in progress. */
InProgress = 1,
/** Indicates a completed task. */
Completed = 2,
/** Indicates a task that depends on another task. */
WaitingOther = 3,
/** Indicates a deferred task. */
Deferred = 4
}
/** Specifies the type of a reminder. */
enum ReminderType
{
/** Trigger the reminder at the exact time specified in its Date property. */
Exact = 0,
/** Trigger the reminder at the specified TimeInterval before the item's scheduled start time. */
Leading = 1
}
/** Specifies the recurrence state of items. */
enum RecurrenceState
{
/** Specifies an one-time non-recurring event. */
None = 0,
/** Specifies a single occurrence of a recurring event. */
Occurrence = 1,
/** Specifies an exception of a recurring event. */
Exception = 1,
/** Specifies a recurring event. */
Master = 1
}
/** Specifies the interval at which recurring events occur. */
enum RecurrencePattern
{
/** Repeats an event every day. */
Daily = 0,
/** Repeats an event every week. */
Weekly = 1,
/** Repeats an event every month. */
Monthly = 2,
/** Repeats an event every year. */
Yearly = 3,
/** Repeats an event over a specified time interval. */
ByTimeInterval = 4
}
/** Specifies daily recurrence patterns. */
enum DailyRecurrence
{
/** Repeats the item at regular intervals specified in the Recurrence.Days property. */
ByDayInterval = 0,
/** Repeats the item each workday, Monday through Friday. */
EveryWorkday = 1,
/** Repeats the item each Saturday and Sunday. */
EveryWeekend = 2
}
/** Specifies monthly recurrence patterns. */
enum MonthlyRecurrence
{
/** The event occurs on the given day of the month. */
ByDayNumber = 0,
/** The event occurs on a given type of day in the specified week of the month. */
ByDayType = 1
}
/** Specifies yearly recurrence patterns. */
enum YearlyRecurrence
{
/** The event occurs on a specific date of the year. */
SpecificDate = 0,
/** The event occurs on a specific type of day of the specified week and month of the year. */
ByDayType = 1
}
/** Specifies the index of occurrence. */
enum Occurrence
{
/** Indicates the first occurrence. */
First = 0,
/** Indicates the second occurrence. */
Second = 1,
/** Indicates the third occurrence. */
Third = 2,
/** Indicates the fourth occurrence. */
Fourth = 3,
/** Indicates the last occurrence. */
Last = 4
}
/** Specifies the type of week day to use with ByDayType monthly and yearly recurrence patterns. */
enum DayOfWeekType
{
/** Indicates any day. */
AnyDay = 0,
/** Indicates a workday. */
Workday = 1,
/** Indicates a weekend day. */
Weekend = 2,
/** Indicates Sunday. */
Sunday = 3,
/** Indicates Monday. */
Monday = 4,
/** Indicates Tuesday. */
Tuesday = 5,
/** Indicates Wednesday. */
Wednesday = 6,
/** Indicates Thursday. */
Thursday = 7,
/** Indicates Friday. */
Friday = 8,
/** Indicates Saturday. */
Saturday = 9
}
/** Specifies when to stop repeating recurring events. */
enum RecurrenceEnd
{
/** Never stop repeating events. */
Never = 0,
/** Stop repeating events after a specified number of occurrences. */
NumOccurrences = 1,
/** The recurrence ends at a specified date. */
EndDate = 2
}
/** Specifies the day of the week. */
enum DayOfWeek
{
/** Indicates Sunday. */
Sunday = 0,
/** Indicates Monday. */
Monday = 1,
/** Indicates Tuesday. */
Tuesday = 2,
/** Indicates Wednesday. */
Wednesday = 3,
/** Indicates Thursday. */
Thursday = 4,
/** Indicates Friday. */
Friday = 5,
/** Indicates Saturday. */
Saturday = 6
}
/** Specifies the day of the week. This enum allows bitwise combination of its members. */
enum DaysOfWeek
{
/** Indicates an undefined day value. */
None = 0,
/** Indicates Sunday. */
Sunday = 1,
/** Indicates Monday. */
Monday = 2,
/** Indicates Tuesday. */
Tuesday = 4,
/** Indicates Wednesday. */
Wednesday = 8,
/** Indicates Thursday. */
Thursday = 16,
/** Indicates Friday. */
Friday = 32,
/** Indicates Saturday. */
Saturday = 64,
/** Indicates all days of the week. */
All = 127
}
/** Specifies the type of modification action used, when an item is modified. */
enum ItemModifyAction
{
/** Specifies that the item was modified through a modification of one or more of its properties, excluding drag and resize interactive operations. */
Edit = 0,
/** Specifies that the item is modified through an interactive drag operation. */
Drag = 1,
/** Specifies that the item is modified through an interactive resize operation. */
Resize = 2,
/** Specifies that the item is modified through an interactive inplace-edit operation. */
InplaceEdit = 3
}
/** Specifies grouping or filtering criteria for views that support grouping. */
enum GroupType
{
/** No grouping or filtering. */
None = 0,
/** Group by contacts. */
GroupByContacts = 1,
/** Group by resources. */
GroupByResources = 2,
/** Group by locations. */
GroupByLocations = 3,
/** Group by tasks. */
GroupByTasks = 4,
/** Filter by contacts. */
FilterByContacts = 5,
/** Filter by locations. */
FilterByLocations = 6,
/** Filter by tasks. */
FilterByTasks = 7,
/** Filter by resources. */
FilterByResources = 8
}
/** Specifies whether there are multiple weeks displayed in WeekRange view. */
enum WeekRangeViewStyle
{
/** The calendar view displays several weeks at a time. */
WeekPerRow = 0,
/** The calendar view displays a single week at a time. */
SingleWeek = 1
}
/** Identifies special Keys. */
enum Keys
{
/** No key pressed. */
None = 0,
/** Indicates the SHIFT modifier key. */
Shift = 1,
/** Indicates the CTRL modifier key. */
Control = 2,
/** Indicates the ALT modifier key. */
Alt = 3
}
/** Specifies the type of a calendar header. */
enum HeaderType
{
/** Indicates a date cell header. */
Cell = 0,
/** Indicates the main view header. */
Main = 1,
/** Indicates the group header. */
Group = 2,
/** Indicates the timeline header. */
Timeline = 3,
/** Indicates the day names header. */
DayNames = 4,
/** Indicates the week numbers header. */
WeekNumbers = 5
}
/** Specifies the type of calendar repaint */
enum RepaintType
{
/** Indicates all calendar element should be repainted */
Full = 1,
/** Indicates only dynamic calendar elements should be repainted. */
View = 1
}
/** Represents an array of arbitrary objects. */
class IEnumerable
{
/** Initializes a new instance of the IEnumerable class.
* @param items The underlying array data structure of the collection.
*/
constructor(items?: Array<any>);
/** Gets the collection as an array. */
items(): Array<any>;
/** Gets the collection as an array in reverse order. */
reverse(): Array<any>;
/** Gets the element at the given index.
* @param index The index.
*/
item(index: number): any;
/** Gets the number of elements. */
count(): number;
/** Checks if the given element is present in the collection.
* @param item The object to check for.
*/
contains(item: any): boolean;
/** Adds an object to the end of the collection.
* @param item The object to add.
*/
add(item: any): void;
/** Adds a range of elements to the end of the collection.
* @param range The range to add.
*/
addRange(range: Array<any>): void;
/** Removes an element from the collection.
* @param item The object to remove.
*/
remove(item: any): void;
/** Removes a range of elements starting from the given index.
* @param index The starting index of the range.
* @param count The length of the range.
*/
removeRange(index: number, count: number): void;
/** Removes the element at the given index.
* @param index The index.
*/
removeAt(index: number): void;
/** Clears the collection. */
clear(): void;
/** Creates a copy of the collection. */
clone(): IEnumerable;
/** Copies a range of elements from this collection to a destination collection.
* @param destination The destination collection.
* @param length The length of the range to copy.
* @param sourceIndex The starting index of the range to copy.
* @param destinationIndex The index at which the range should be copied.
*/
copyTo(destination: IEnumerable, length: number, sourceIndex?: number, destinationIndex?: number): void;
/** Sorts the underlying array.
* @param compareFn The comparing function.
*/
sort(compareFn: Function): void;
/** Gets the index of a given object in a collection.
* @param obj The object to look for.
* @param fromIndex The starting index to search from.
*/
indexOfItem(obj: any, fromIndex?: number): number;
/** Adds an element to the collection at the specified index.
* @param index The index.
* @param item The item.
*/
insert(index: number, item: any): void;
/** Returns a new Object array, containing the contents of the collection. */
toArray(): Array<any>;
/** Invokes a transform function on each item and returns the maximum value in a sequence of numbers.
* @param selector A transform function to invoke on each element.
*/
max(selector: Function): number;
/** Invokes a transform function on each item and returns the minimum value in a sequence of numbers.
* @param selector A transform function to invoke on each element.
*/
min(selector: Function): number;
/** Computes the sum of the sequence of number values that are obtained by invoking a transform function on each element.
* @param selector A transform function to invoke on each element.
*/
sum(selector: Function): number;
/** Projects each element of a sequence into a new form.
* @param selector A transform function to invoke on each element.
*/
select(selector: Function): IEnumerable;
/** Filters a sequence of values based on a predicate.
* @param selector A function to test each element for a condition.
*/
where(selector: Function): IEnumerable;
/** Executes a provided function once for each element.
* @param callback A function to execute for each element.
* @param context The invokation context.
*/
forEach(callback: Function, context: any): void;
/** Returns the first element in the collection. */
first(): any;
/** Returns the last element in the collection. */
last(): any;
}
/** Represents an array of arbitrary objects. */
class List extends IEnumerable
{
/** Initializes a new instance of the List class.
* @param items The underlying array data structure of the collection.
*/
constructor(items?: Array<any>);
}
/** Represents an collection of arbitrary objects. */
class ObservableCollection extends List
{
/** Initializes a new instance of the ObservableCollection class.
* @param items The underlying array data structure of the collection.
*/
constructor(items?: Array<any>);
}
/** Represents a collection of keys and values. */
class Dictionary
{
/** Initializes a new instance of the Dictionary class. */
constructor();
/** Associates the specified value with the specified key within the dictionary.
* @param key The key to associate the value with.
* @param value The value to associate.
*/
set(key: any, value: any): void;
/** Gets the value associated with the specified key within the dictionary.
* @param key The key whose value to get.
*/
get(key: any): any;
/** Determines whether the dictionary contains a specific key.
* @param key The key to locate in the dictionary.
*/
contains(key: any): boolean;
/** Removes the element with the specified key from the dictionary.
* @param key The key of the element to remove.
*/
remove(key: any): any;
/** Gets an array with all keys in the dictionary. */
keys: Array<any>;
/** Gets an array with all values in the dictionary. */
values: Array<any>;
/** Gets the number of key/value pairs contained in the dictionary. */
count: number;
}
/** epresents a dispatcher for an event. */
class EventDispatcher
{
/** Subcribes an event listener to this event.
* @param handler The object which receives a notification.
*/
addEventListener(handler: any): void;
/** Removes an event listener from this event.
* @param handler The object to remove.
*/
removeEventListener(handler: any): void;
/** Raises this event.
* @param sender The sender object.
* @param args The event argument.
*/
raiseEvent(sender: any, args: any): void;
}
/** The base type of classes that define arguments passed to event handler functions. */
class EventArgs
{
}
/** Provides a value to use with events that do not have event data. */
class EmptyEventArgs extends EventArgs
{
}
/** Provides a value to use with cancellable events. */
class CancelEventArgs extends EventArgs
{
/** Gets or sets a value indicating whether to allow the current operation. */
cancel: boolean;
}
/** Provides data for PropertyChanged events. */
class PropertyChangedEventArgs extends EventArgs
{
/** Gets the name of the property that changed. */
propertyName: string;
}
/** Provides data for PropertyValueChanged events. */
class PropertyEventArgs extends EventArgs
{
/** Gets the name of the property that changed. */
propertyName: string;
/** Gets the old value of the property. */
oldValue: any;
/** Gets the new value of the property. */
newValue: any;
}
/** Provides data for CollectionChanging events. */
class NotifyCollectionChangingEventArgs extends CancelEventArgs
{
/** Gets the action that caused the event. */
action: NotifyCollectionChangedAction;
/** Get sthe list of old items involved in the change. */
oldItems: Array<any>;
/** Gets the list of new items involved in the change. */
newItems: Array<any>;
}
/** Provides data for CollectionChanging events. */
class NotifyCollectionChangedEventArgs extends EventArgs
{
/** Gets the action that caused the event. */
action: NotifyCollectionChangedAction;
/** Gets the list of old items involved in the change. */
oldItems: Array<any>;
/** Gets the list of new items involved in the change. */
newItems: Array<any>;
}
/** A Javascript Date object wrapper that extends the functionality of the JavaScript Date object. */
class DateTime
{
/** Initializes a new instance of the DateTime class.
* @param date A JavaScript Date object
*/
constructor(date?: Date);
/** Creates a new DateTime object, by specifying its different date and time components.
* @param year The year component.
* @param month The month component.
* @param day The day component.
* @param hours The hours component.
* @param minutes The minutes component.
* @param seconds The seconds component.
* @param milliseconds The milliseconds component.
*/
static fromDateParts(year: number, month: number, day?: number, hours?: number, minutes?: number, seconds?: number, milliseconds?: number): DateTime;
/** Creates a new DateTime object from a provided date string.
* @param dateString The date string to create the DateTime from.
*/
static fromDateString(dateString: string): DateTime;
/** Creates a new DateTime object from the number of milliseconds since Jan 1st 1970.
* @param milliseconds The number of milliseconds since Jan 1st 1970.
*/
static fromMilliseconds(milliseconds: number): DateTime;
/** Combines the date component of a DateTime object and the time component of another DateTime object into a new DateTime object.
* @param date A DateTime object to get the date part from.
* @param time A DateTime object to get the time part from.
*/
static combine(date: DateTime, time: DateTime): DateTime;
/** Returns the latter of two DateTime objects.
* @param date1 A DateTime object
* @param date2 A DateTime object
*/
static maxDate(date1: DateTime, date2: DateTime): DateTime;
/** Returns the former of two DateTime objects.
* @param date1 A DateTime object
* @param date2 A DateTime object
*/
static minDate(date1: DateTime, date2: DateTime): DateTime;
/** Returns the number of milliseconds between the specified dates.
* @param date1 A DateTime object to subtract from
* @param date2 A DateTime object to subtract
*/
static subtract(date1: DateTime, date2: DateTime): number;
/** Returns the lowest possible DateTime value. */
static minValue(): DateTime;
/** Returns the highest possible DateTime value. */
static maxValue(): DateTime;
/** Returns a DateTime object representing the current DateTime. */
static now(): DateTime;
/** Returns a DateTime object representing the current Date. */
static today(): DateTime;
/** Returns the year component of the specified DateTime.
* @param date A DateTime instance
*/
static getYear(date: DateTime): number;
/** Returns the month component of the specified DateTime.
* @param date A DateTime instance
*/
static getMonth(date: DateTime): number;
/** Returns the number of days in the month of the specified DateTime.
* @param date A DateTime instance
*/
static getDaysInMonth(date: DateTime): number;
/** Returns the day of the month of the specified DateTime.
* @param date A DateTime instance
*/
static getDayOfMonth(date: DateTime): number;
/** Returns the day of the week of the specified DateTime.
* @param date A DateTime instance
*/
static getDayOfWeek(date: DateTime): number;
/** Returns the beginning of the week of the specified DateTime.
* @param date A DateTime instance
* @param formatInfo The formatInfo object
*/
static getWeekFirstDate(date: DateTime, formatInfo?: any): DateTime;
/** Adds the specified number of milliseconds to the specified DateTime object.
* @param date The DateTime instance to modify.
* @param milliseconds The number of milliseconds to add.
*/
static addMilliseconds(date: DateTime, milliseconds: number): DateTime;
/** Adds the specified number of seconds to the specified DateTime object.
* @param date The DateTime instance to modify.
* @param seconds The number of seconds to add.
*/
static addSeconds(date: DateTime, seconds: number): DateTime;
/** Adds the specified number of minutes to the specified DateTime object.
* @param date The DateTime instance to modify.
* @param minutes The number of minutes to add.
*/
static addMinutes(date: DateTime, minutes: number): DateTime;
/** Adds the specified number of hours to the specified DateTime object.
* @param date The DateTime instance to modify.
* @param hours The number of hours to add.
*/
static addHours(date: DateTime, hours: number): DateTime;
/** Adds the specified number of days to the specified DateTime object.
* @param date The DateTime instance to modify.
* @param days The number of days to add.
*/
static addDays(date: DateTime, days: number): DateTime;
/** Adds the specified number of months to the specified DateTime object.
* @param date The DateTime instance to modify.
* @param months The number of months to add.
*/
static addMonths(date: DateTime, months: number): DateTime;
/** Adds the specified number of years to the specified DateTime object.
* @param date The DateTime instance to modify.
* @param years The number of years to add.
*/
static addYears(date: DateTime, years: number): DateTime;
/** The milliseconds in one second. */
static MillisPerSecond: number;
/** The milliseconds in one minute. */
static MillisPerMinute: number;
/** The milliseconds in one hour. */
static MillisPerHour: number;
/** The milliseconds in one day. */
static MillisPerDay: number;
/** The ticks in one millisecond. */
static TicksPerMillisecond: number;
/** The ticks in one second. */
static TicksPerSecond: number;
/** The ticks in one minute. */
static TicksPerMinute: number;
/** The ticks in one hour. */
static TicksPerHour: number;
/** The ticks in one day. */
static TicksPerDay: number;
/** Returns a string representation of the current DateTime object.
* @param format The DateTime format used for the string representation.
* @param formatInfo The formatInfo object used for the string representation
*/
toString(format: string, formatInfo: any): string;
/** Returns a copy of the current DateTime object. */
clone(): DateTime;
/** Returns a value indicating whether the values of two DateTime objects are equal.
* @param date The DateTime object to compare with.
*/
equals(date: DateTime): boolean;
/** Subtracts the specified date from the current date and returns the number of milliseconds between them.
* @param date The DateTime object to subtract.
*/
subtract(date: DateTime): number;
/** Checks if this DateTime object is greater than the specified DateTime object.
* @param date The DateTime object to compare with.
*/
greaterThan(date: DateTime): boolean;
/** Checks if this DateTime object is greater than or equal to the specified DateTime object.
* @param date The DateTime object to compare with.
*/
greaterThanOrEqual(date: DateTime): boolean;
/** Checks if this DateTime object is less than the specified DateTime object.
* @param date The DateTime object to compare with.
*/
lessThan(date: DateTime): boolean;
/** Checks if this DateTime object is less than or equal to the specified DateTime object.
* @param date The DateTime object to compare with.
*/
lessThanOrEqual(date: DateTime): boolean;
/** Compares the current DateTime instance with another DateTime object and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
* @param date The DateTime object to compare with.
*/
compareTo(date: DateTime): number;
/** Returns the number of milliseconds between two DateTime instances.
* @param date1 A DateTime instance.
* @param date2 A DateTime instance.
*/
static millisecondsBetween(date1: DateTime, date2: DateTime): number;
/** Returns the number of seconds between two DateTime instances.
* @param date1 A DateTime instance.
* @param date2 A DateTime instance.
*/
static secondsBetween(date1: DateTime, date2: DateTime): number;
/** Returns the number of minutes between two DateTime instances.
* @param date1 A DateTime instance.
* @param date2 A DateTime instance.
*/
static minutesBetween(date1: DateTime, date2: DateTime): number;
/** Returns the number of hours between two DateTime instances.
* @param date1 A DateTime instance.
* @param date2 A DateTime instance.
*/
static hoursBetween(date1: DateTime, date2: DateTime): number;
/** Returns the number of days between two DateTime instances.
* @param date1 A DateTime instance.
* @param date2 A DateTime instance.
*/
static daysBetween(date1: DateTime, date2: DateTime): number;
/** Returns the number of weeks between two DateTime instances.
* @param date1 A DateTime instance.
* @param date2 A DateTime instance.
*/
static weeksBetween(date1: DateTime, date2: DateTime): number;
/** Returns the number of months between two DateTime instances.
* @param date1 A DateTime instance.
* @param date2 A DateTime instance.
*/
static monthsBetween(date1: DateTime, date2: DateTime): number;
/** Returns the number of years between two DateTime instances.
* @param date1 A DateTime instance.
* @param date2 A DateTime instance.
*/
static yearsBetween(date1: DateTime, date2: DateTime): number;
/** Adds the specified number of milliseconds to the current DateTime object.
* @param milliseconds The number of milliseconds to add.
*/
addMilliseconds(milliseconds: number): DateTime;
/** Adds the specified number of seconds to the current DateTime object.
* @param seconds The number of seconds to add.
*/
addSeconds(seconds: number): DateTime;
/** Adds the specified number of minutes to the current DateTime object.
* @param minutes The number of minutes to add.
*/
addMinutes(minutes: number): DateTime;
/** Adds the specified number of hours to the current DateTime object.
* @param hours The number of hours to add.
*/
addHours(hours: number): DateTime;
/** Adds the specified number of days to the current DateTime object.
* @param days The number of days to add.
*/
addDays(days: number): DateTime;
/** Adds the specified number of months to the current DateTime object.
* @param months The number of months to add.
*/
addMonths(months: number): DateTime;
/** Adds the specified number of years to the current DateTime object.
* @param years The number of years to add.
*/
addYears(years: number): DateTime;
/** Returns the Javascript Date object, corresponding to the current DateTime object. */
getDate(): Date;
/** Returns the month component of the current DateTime object. */
getMonth(): number;
/** Returns the number of days in the month of the current DateTime instance. */
getDaysInMonth(): number;
/** Returns a value indicating whether the year of the current DateTime instance is a leap year. */
isLeapYear(): boolean;
/** Gets the millisecond component of the date represented by this instance. */
millisecond: number;
/** Gets the second component of the date represented by this instance. */
second: number;
/** Gets the minute component of the date represented by this instance. */
minute: number;
/** Gets the hour component of the date represented by this instance. */
hour: number;
/** Gets the day component of the date represented by this instance. */
day: number;
/** Gets the month component of the date represented by this instance. */
month: number;
/** Gets the year component of the date represented by this instance. */
year: number;
/** Gets the date component of the date represented by this instance. */
date: DateTime;
/** Gets the time component of the date represented by this instance. */
timeOfDay: number;
/** Gets the day of the month represented by this date. */
dayOfMonth: number;
/** Gets the day of the week represented by this date. */
dayOfWeek: number;
/** Gets the number of days in the month represented by this date. */
daysInMonth: number;
/** Gets the year component of this DateTime instance. */
__getFullYear(): number;
/** Gets the month component of this DateTime instance. */
__getMonth(): number;
/** Gets the day component of this DateTime instance. */
__getDate(): number;
/** Gets the day of the week component of this DateTime instance. */
__getDay(): number;
/** Gets the hours component of this DateTime instance. */
__getHours(): number;
/** Gets the minutes component of this DateTime instance. */
__getMinutes(): number;
/** Gets the seconds component of this DateTime instance. */
__getSeconds(): number;
/** Gets the milliseconds component of this DateTime instance. */
__getMilliseconds(): number;
/** Gets the number of milliseconds between Jan 1 1970 00:00:00 and this DateTime instance. */
__getTime(): number;
/** Gets the difference between GMT and local time in minutes. */
__getTimezoneOffset(): number;
/** Gets the year component of this DateTime instance, according to universal time. */
__getUTCFullYear(): number;
/** Gets the month component of this DateTime instance, according to universal time. */
__getUTCMonth(): number;
/** Gets the day component of this DateTime instance, according to universal time. */
__getUTCDate(): number;
/** Gets the day of the week component of this DateTime instance, according to universal time. */
__getUTCDay(): number;
/** Gets the hours component of this DateTime instance, according to universal time. */
__getUTCHours(): number;
/** Gets the minutes component of this DateTime instance, according to universal time. */
__getUTCMinutes(): number;
/** Gets the seconds component of this DateTime instance, according to universal time. */
__getUTCSeconds(): number;
/** Gets the milliseconds component of this DateTime instance, according to universal time. */
__getUTCMilliseconds(): number;
/** Sets the year component of this DateTime instance.
* @param year A four-digit value representing the year.
* @param month An integer between 0 and 11 representing the month.
* @param day An integer between 1 and 31 representing the date.
*/
__setFullYear(year: number, month?: number, day?: number): void;
/** Sets the day component of this DateTime instance.
* @param day The day of month (1-31).
*/
__setDate(day: number): void;
/** Sets the hours component of this DateTime instance.
* @param hour An integer between 0 and 23 representing the hour.
* @param min An integer between 0 and 59 representing the minute.
* @param sec An integer between 0 and 59 representing the second.
* @param millisec An integer between 0 and 999 representing the millisecond.
*/
__setHours(hour: number, min?: number, sec?: number, millisec?: number): void;
/** Sets the minutes component of this DateTime instance.
* @param min An integer between 0 and 59 representing the minute.
* @param sec An integer between 0 and 59 representing the second.
* @param millisec An integer between 0 and 999 representing the millisecond.
*/
__setMinutes(min: number, sec?: number, millisec?: number): void;
/** Sets the seconds component of this DateTime instance.
* @param sec An integer between 0 and 59 representing the second.
* @param millisec An integer between 0 and 999 representing the millisecond.
*/
__setSeconds(sec: number, millisec?: number): void;
/** Sets the milliseconds component of this DateTime instance.
* @param millisec An integer between 0 and 999 representing the millisecond.
*/
__setMilliseconds(millisec: number): void;
/** Sets a date and time by adding or subtracting a specified number of milliseconds to/from midnight 1 Jan 1970.
* @param millisec The number of milliseconds to be added to, or subtracted from, midnight 1 Jan 1970.
*/
__setTime(millisec: number): void;
/** Sets the year component of this DateTime instance, according to universal time.
* @param year A four-digit value representing the year.
* @param month An integer between 0 and 11 representing the month.
* @param day An integer between 1 and 31 representing the date.
*/
__setUTCFullYear(year: number, month?: number, day?: number): void;
/** Sets the day component of this DateTime instance, according to universal time.
* @param day The day of month (1-31).
*/
__setUTCDate(day: number): void;
/** Sets the hours component of this DateTime instance, according to universal time.
* @param hour An integer between 0 and 23 representing the hour.
* @param min An integer between 0 and 59 representing the minute.
* @param sec An integer between 0 and 59 representing the second.
* @param millisec An integer between 0 and 999 representing the millisecond.
*/
__setUTCHours(hour: number, min?: number, sec?: number, millisec?: number): void;
/** Sets the minutes component of this DateTime instance, according to universal time.
* @param min An integer between 0 and 59 representing the minute.
* @param sec An integer between 0 and 59 representing the second.
* @param millisec An integer between 0 and 999 representing the millisecond.
*/
__setUTCMinutes(min: number, sec?: number, millisec?: number): void;
/** Sets the seconds component of this DateTime instance, according to universal time.
* @param sec An integer between 0 and 59 representing the second.
* @param millisec An integer between 0 and 999 representing the millisecond.
*/
__setUTCSeconds(sec: number, millisec?: number): void;
/** Sets the milliseconds component of this DateTime instance, according to universal time.
* @param millisec An integer between 0 and 999 representing the millisecond.
*/
__setUTCMilliseconds(millisec: number): void;
/** Converts the date component of this DateTime instance to a readable string. */
__toDateString(): string;
/** Converts the date component of this DateTime instance to a readable string, using locale conventions. */
__toLocaleDateString(): string;
/** Converts the time component of this DateTime instance to a readable string, using locale conventions. */
__toLocaleTimeString(): string;
/** Converts this DateTime instance to a readable string, using locale conventions. */
__toLocaleString(): string;
/** Converts this DateTime instance to a readable string. */
__toString(): string;
/** Converts the time component of this DateTime instance to a readable string. */
__toTimeString(): string;
/** Converts this DateTime instance to a readable string, according to universal time. */
__toUTCString(): string;
/** Represents the primitive value of this DateTime object. */
__valueOf(): number;
}
/** Represents a time interval. */
class TimeSpan
{
/** Initializes a new instance of the TimeSpan class.
* @param ticks The number of ticks that represent the value of the time span.
*/
constructor(ticks: number);
/** Returns a new TimeSpan object whose value is the sum of the specified TimeSpan object and this instance.
* @param timespan The TimeSpan object to add.
* @return The resulting time span.
*/
add(timespan: TimeSpan): TimeSpan;
/** Returns a new TimeSpan object whose value is the difference of the specified TimeSpan object and this instance.
* @param timespan The TimeSpan object to subtract.
* @return The resulting time span.
*/
subtract(timespan: TimeSpan): TimeSpan;
/** Gets the number of ticks that represent the value of the time span. */
ticks: number;
/** Gets the number of milliseconds that represent the value of the time span. */
milliseconds: number;
/** Gets the number of seconds that represent the value of the time span. */
seconds: number;
/** Gets the number of minutes that represent the value of the time span. */
minutes: number;
/** Gets the number of hours that represent the value of the time span. */
hours: number;
/** Gets the number of days that represent the value of the time span. */
days: number;
/** Creates a copy of the time span.
* @return The resulting time span.
*/
clone(): TimeSpan;
/** Checks if the time span object represents the same time value as the current instance.
* @param timespan The TimeSpan object to compare.
* @return True if the time spans represent the same time value, otherwise false.
*/