Netsutie PHP Toolkit
SearchDate.php
Go to the documentation of this file.
1 <?php
8 class SearchDate {
9 
10 
11 
12  static $paramtypesmap = array(
13 
14  );
15 
22  const fiscalHalfBeforeLast = "fiscalHalfBeforeLast";
23 
30  const fiscalHalfBeforeLastToDate = "fiscalHalfBeforeLastToDate";
31 
38  const fiscalQuarterBeforeLast = "fiscalQuarterBeforeLast";
39 
46  const fiscalQuarterBeforeLastToDate = "fiscalQuarterBeforeLastToDate";
47 
54  const fiscalYearBeforeLast = "fiscalYearBeforeLast";
55 
62  const fiscalYearBeforeLastToDate = "fiscalYearBeforeLastToDate";
63 
70  const fiveDaysAgo = "fiveDaysAgo";
71 
78  const fiveDaysFromNow = "fiveDaysFromNow";
79 
86  const fourDaysAgo = "fourDaysAgo";
87 
94  const fourDaysFromNow = "fourDaysFromNow";
95 
102  const fourWeeksStartingThisWeek = "fourWeeksStartingThisWeek";
103 
110  const lastBusinessWeek = "lastBusinessWeek";
111 
118  const lastFiscalHalf = "lastFiscalHalf";
119 
126  const lastFiscalHalfOneFiscalYearAgo = "lastFiscalHalfOneFiscalYearAgo";
127 
134  const lastFiscalHalfToDate = "lastFiscalHalfToDate";
135 
142  const lastFiscalQuarter = "lastFiscalQuarter";
143 
150  const lastFiscalQuarterOneFiscalYearAgo = "lastFiscalQuarterOneFiscalYearAgo";
151 
158  const lastFiscalQuarterToDate = "lastFiscalQuarterToDate";
159 
166  const lastFiscalQuarterTwoFiscalYearsAgo = "lastFiscalQuarterTwoFiscalYearsAgo";
167 
174  const lastFiscalYear = "lastFiscalYear";
175 
182  const lastFiscalYearToDate = "lastFiscalYearToDate";
183 
190  const lastMonth = "lastMonth";
191 
198  const lastMonthOneFiscalQuarterAgo = "lastMonthOneFiscalQuarterAgo";
199 
206  const lastMonthOneFiscalYearAgo = "lastMonthOneFiscalYearAgo";
207 
214  const lastMonthToDate = "lastMonthToDate";
215 
222  const lastMonthTwoFiscalQuartersAgo = "lastMonthTwoFiscalQuartersAgo";
223 
230  const lastMonthTwoFiscalYearsAgo = "lastMonthTwoFiscalYearsAgo";
231 
238  const lastRollingHalf = "lastRollingHalf";
239 
246  const lastRollingQuarter = "lastRollingQuarter";
247 
254  const lastRollingYear = "lastRollingYear";
255 
262  const lastWeek = "lastWeek";
263 
270  const lastWeekToDate = "lastWeekToDate";
271 
278  const monthAfterNext = "monthAfterNext";
279 
286  const monthAfterNextToDate = "monthAfterNextToDate";
287 
294  const monthBeforeLast = "monthBeforeLast";
295 
302  const monthBeforeLastToDate = "monthBeforeLastToDate";
303 
310  const nextBusinessWeek = "nextBusinessWeek";
311 
318  const nextFiscalHalf = "nextFiscalHalf";
319 
326  const nextFiscalQuarter = "nextFiscalQuarter";
327 
334  const nextFiscalYear = "nextFiscalYear";
335 
342  const nextFourWeeks = "nextFourWeeks";
343 
350  const nextMonth = "nextMonth";
351 
358  const nextOneHalf = "nextOneHalf";
359 
366  const nextOneMonth = "nextOneMonth";
367 
374  const nextOneQuarter = "nextOneQuarter";
375 
382  const nextOneWeek = "nextOneWeek";
383 
390  const nextOneYear = "nextOneYear";
391 
398  const nextWeek = "nextWeek";
399 
406  const ninetyDaysAgo = "ninetyDaysAgo";
407 
414  const ninetyDaysFromNow = "ninetyDaysFromNow";
415 
422  const oneYearBeforeLast = "oneYearBeforeLast";
423 
430  const previousFiscalQuartersLastFiscalYear = "previousFiscalQuartersLastFiscalYear";
431 
438  const previousFiscalQuartersThisFiscalYear = "previousFiscalQuartersThisFiscalYear";
439 
446  const previousMonthsLastFiscalHalf = "previousMonthsLastFiscalHalf";
447 
454  const previousMonthsLastFiscalQuarter = "previousMonthsLastFiscalQuarter";
455 
462  const previousMonthsLastFiscalYear = "previousMonthsLastFiscalYear";
463 
470  const previousMonthsSameFiscalHalfLastFiscalYear = "previousMonthsSameFiscalHalfLastFiscalYear";
471 
478  const previousMonthsSameFiscalQuarterLastFiscalYear = "previousMonthsSameFiscalQuarterLastFiscalYear";
479 
486  const previousMonthsThisFiscalHalf = "previousMonthsThisFiscalHalf";
487 
494  const previousMonthsThisFiscalQuarter = "previousMonthsThisFiscalQuarter";
495 
502  const previousMonthsThisFiscalYear = "previousMonthsThisFiscalYear";
503 
510  const previousOneDay = "previousOneDay";
511 
518  const previousOneHalf = "previousOneHalf";
519 
526  const previousOneMonth = "previousOneMonth";
527 
534  const previousOneQuarter = "previousOneQuarter";
535 
542  const previousOneWeek = "previousOneWeek";
543 
550  const previousOneYear = "previousOneYear";
551 
558  const previousRollingHalf = "previousRollingHalf";
559 
566  const previousRollingQuarter = "previousRollingQuarter";
567 
574  const previousRollingYear = "previousRollingYear";
575 
582  const sameDayFiscalQuarterBeforeLast = "sameDayFiscalQuarterBeforeLast";
583 
590  const sameDayFiscalYearBeforeLast = "sameDayFiscalYearBeforeLast";
591 
598  const sameDayLastFiscalQuarter = "sameDayLastFiscalQuarter";
599 
606  const sameDayLastFiscalYear = "sameDayLastFiscalYear";
607 
614  const sameDayLastMonth = "sameDayLastMonth";
615 
622  const sameDayLastWeek = "sameDayLastWeek";
623 
630  const sameDayMonthBeforeLast = "sameDayMonthBeforeLast";
631 
638  const sameDayWeekBeforeLast = "sameDayWeekBeforeLast";
639 
646  const sameFiscalHalfLastFiscalYear = "sameFiscalHalfLastFiscalYear";
647 
654  const sameFiscalHalfLastFiscalYearToDate = "sameFiscalHalfLastFiscalYearToDate";
655 
662  const sameFiscalQuarterFiscalYearBeforeLast = "sameFiscalQuarterFiscalYearBeforeLast";
663 
670  const sameFiscalQuarterLastFiscalYear = "sameFiscalQuarterLastFiscalYear";
671 
678  const sameFiscalQuarterLastFiscalYearToDate = "sameFiscalQuarterLastFiscalYearToDate";
679 
686  const sameMonthFiscalQuarterBeforeLast = "sameMonthFiscalQuarterBeforeLast";
687 
694  const sameMonthFiscalYearBeforeLast = "sameMonthFiscalYearBeforeLast";
695 
702  const sameMonthLastFiscalQuarter = "sameMonthLastFiscalQuarter";
703 
710  const sameMonthLastFiscalQuarterToDate = "sameMonthLastFiscalQuarterToDate";
711 
718  const sameMonthLastFiscalYear = "sameMonthLastFiscalYear";
719 
726  const sameMonthLastFiscalYearToDate = "sameMonthLastFiscalYearToDate";
727 
734  const sameWeekFiscalYearBeforeLast = "sameWeekFiscalYearBeforeLast";
735 
742  const sameWeekLastFiscalYear = "sameWeekLastFiscalYear";
743 
750  const sixtyDaysAgo = "sixtyDaysAgo";
751 
758  const sixtyDaysFromNow = "sixtyDaysFromNow";
759 
766  const startOfFiscalHalfBeforeLast = "startOfFiscalHalfBeforeLast";
767 
774  const startOfFiscalQuarterBeforeLast = "startOfFiscalQuarterBeforeLast";
775 
782  const startOfFiscalYearBeforeLast = "startOfFiscalYearBeforeLast";
783 
790  const startOfLastBusinessWeek = "startOfLastBusinessWeek";
791 
798  const startOfLastFiscalHalf = "startOfLastFiscalHalf";
799 
806  const startOfLastFiscalHalfOneFiscalYearAgo = "startOfLastFiscalHalfOneFiscalYearAgo";
807 
814  const startOfLastFiscalQuarter = "startOfLastFiscalQuarter";
815 
822  const startOfLastFiscalQuarterOneFiscalYearAgo = "startOfLastFiscalQuarterOneFiscalYearAgo";
823 
830  const startOfLastFiscalYear = "startOfLastFiscalYear";
831 
838  const startOfLastMonth = "startOfLastMonth";
839 
846  const startOfLastMonthOneFiscalQuarterAgo = "startOfLastMonthOneFiscalQuarterAgo";
847 
854  const startOfLastMonthOneFiscalYearAgo = "startOfLastMonthOneFiscalYearAgo";
855 
862  const startOfLastRollingHalf = "startOfLastRollingHalf";
863 
870  const startOfLastRollingQuarter = "startOfLastRollingQuarter";
871 
878  const startOfLastRollingYear = "startOfLastRollingYear";
879 
886  const startOfLastWeek = "startOfLastWeek";
887 
894  const startOfMonthBeforeLast = "startOfMonthBeforeLast";
895 
902  const startOfNextBusinessWeek = "startOfNextBusinessWeek";
903 
910  const startOfNextFiscalHalf = "startOfNextFiscalHalf";
911 
918  const startOfNextFiscalQuarter = "startOfNextFiscalQuarter";
919 
926  const startOfNextFiscalYear = "startOfNextFiscalYear";
927 
934  const startOfNextMonth = "startOfNextMonth";
935 
942  const startOfNextWeek = "startOfNextWeek";
943 
950  const startOfPreviousRollingHalf = "startOfPreviousRollingHalf";
951 
958  const startOfPreviousRollingQuarter = "startOfPreviousRollingQuarter";
959 
966  const startOfPreviousRollingYear = "startOfPreviousRollingYear";
967 
974  const startOfSameFiscalHalfLastFiscalYear = "startOfSameFiscalHalfLastFiscalYear";
975 
982  const startOfSameFiscalQuarterLastFiscalYear = "startOfSameFiscalQuarterLastFiscalYear";
983 
990  const startOfSameMonthLastFiscalQuarter = "startOfSameMonthLastFiscalQuarter";
991 
998  const startOfSameMonthLastFiscalYear = "startOfSameMonthLastFiscalYear";
999 
1006  const startOfThisBusinessWeek = "startOfThisBusinessWeek";
1007 
1014  const startOfThisFiscalHalf = "startOfThisFiscalHalf";
1015 
1022  const startOfThisFiscalQuarter = "startOfThisFiscalQuarter";
1023 
1030  const startOfThisFiscalYear = "startOfThisFiscalYear";
1031 
1038  const startOfThisMonth = "startOfThisMonth";
1039 
1046  const startOfThisWeek = "startOfThisWeek";
1047 
1054  const startOfThisYear = "startOfThisYear";
1055 
1062  const startOfWeekBeforeLast = "startOfWeekBeforeLast";
1063 
1070  const tenDaysAgo = "tenDaysAgo";
1071 
1078  const tenDaysFromNow = "tenDaysFromNow";
1079 
1086  const thirtyDaysAgo = "thirtyDaysAgo";
1087 
1094  const thirtyDaysFromNow = "thirtyDaysFromNow";
1095 
1102  const thisBusinessWeek = "thisBusinessWeek";
1103 
1110  const thisFiscalHalf = "thisFiscalHalf";
1111 
1118  const thisFiscalHalfToDate = "thisFiscalHalfToDate";
1119 
1126  const thisFiscalQuarter = "thisFiscalQuarter";
1127 
1134  const thisFiscalQuarterToDate = "thisFiscalQuarterToDate";
1135 
1142  const thisFiscalYear = "thisFiscalYear";
1143 
1150  const thisFiscalYearToDate = "thisFiscalYearToDate";
1151 
1158  const thisMonth = "thisMonth";
1159 
1166  const thisMonthToDate = "thisMonthToDate";
1167 
1174  const thisRollingHalf = "thisRollingHalf";
1175 
1182  const thisRollingQuarter = "thisRollingQuarter";
1183 
1190  const thisRollingYear = "thisRollingYear";
1191 
1198  const thisWeek = "thisWeek";
1199 
1206  const thisWeekToDate = "thisWeekToDate";
1207 
1214  const thisYear = "thisYear";
1215 
1222  const threeDaysAgo = "threeDaysAgo";
1223 
1230  const threeDaysFromNow = "threeDaysFromNow";
1231 
1238  const threeFiscalQuartersAgo = "threeFiscalQuartersAgo";
1239 
1246  const threeFiscalQuartersAgoToDate = "threeFiscalQuartersAgoToDate";
1247 
1254  const threeFiscalYearsAgo = "threeFiscalYearsAgo";
1255 
1262  const threeFiscalYearsAgoToDate = "threeFiscalYearsAgoToDate";
1263 
1270  const threeMonthsAgo = "threeMonthsAgo";
1271 
1278  const threeMonthsAgoToDate = "threeMonthsAgoToDate";
1279 
1286  const today = "today";
1287 
1294  const tomorrow = "tomorrow";
1295 
1302  const twoDaysAgo = "twoDaysAgo";
1303 
1310  const twoDaysFromNow = "twoDaysFromNow";
1311 
1318  const weekAfterNext = "weekAfterNext";
1319 
1326  const weekAfterNextToDate = "weekAfterNextToDate";
1327 
1334  const weekBeforeLast = "weekBeforeLast";
1335 
1342  const weekBeforeLastToDate = "weekBeforeLastToDate";
1343 
1350  const yesterday = "yesterday";
1351 
1352 }
const startOfMonthBeforeLast
Definition: SearchDate.php:894
const lastFiscalQuarterToDate
Definition: SearchDate.php:158
const thisFiscalHalfToDate
const fiveDaysFromNow
Definition: SearchDate.php:78
const sameWeekLastFiscalYear
Definition: SearchDate.php:742
const thisRollingYear
const sixtyDaysAgo
Definition: SearchDate.php:750
const threeFiscalQuartersAgoToDate
const fourWeeksStartingThisWeek
Definition: SearchDate.php:102
const previousMonthsLastFiscalHalf
Definition: SearchDate.php:446
const nextWeek
Definition: SearchDate.php:398
const lastFiscalQuarterTwoFiscalYearsAgo
Definition: SearchDate.php:166
const weekAfterNext
const thisFiscalYear
const startOfPreviousRollingQuarter
Definition: SearchDate.php:958
const twoDaysFromNow
const threeFiscalYearsAgo
const nextMonth
Definition: SearchDate.php:350
const tenDaysAgo
const startOfFiscalYearBeforeLast
Definition: SearchDate.php:782
const lastWeek
Definition: SearchDate.php:262
const lastFiscalQuarterOneFiscalYearAgo
Definition: SearchDate.php:150
const sameDayFiscalYearBeforeLast
Definition: SearchDate.php:590
const startOfLastMonthOneFiscalYearAgo
Definition: SearchDate.php:854
const startOfLastMonth
Definition: SearchDate.php:838
const lastFiscalYearToDate
Definition: SearchDate.php:182
const startOfLastFiscalQuarter
Definition: SearchDate.php:814
const fiscalYearBeforeLast
Definition: SearchDate.php:54
const sameDayLastFiscalQuarter
Definition: SearchDate.php:598
const thisFiscalHalf
const previousRollingHalf
Definition: SearchDate.php:558
const previousFiscalQuartersThisFiscalYear
Definition: SearchDate.php:438
const previousMonthsSameFiscalHalfLastFiscalYear
Definition: SearchDate.php:470
const fiscalHalfBeforeLastToDate
Definition: SearchDate.php:30
const startOfNextFiscalYear
Definition: SearchDate.php:926
const lastRollingQuarter
Definition: SearchDate.php:246
const startOfNextFiscalQuarter
Definition: SearchDate.php:918
const tenDaysFromNow
const threeFiscalYearsAgoToDate
const threeMonthsAgo
const thisYear
const threeFiscalQuartersAgo
const oneYearBeforeLast
Definition: SearchDate.php:422
const startOfLastFiscalHalfOneFiscalYearAgo
Definition: SearchDate.php:806
const nextFiscalQuarter
Definition: SearchDate.php:326
const previousMonthsLastFiscalQuarter
Definition: SearchDate.php:454
const startOfThisFiscalQuarter
const sameMonthLastFiscalQuarterToDate
Definition: SearchDate.php:710
const nextFiscalYear
Definition: SearchDate.php:334
const thisWeekToDate
const nextOneWeek
Definition: SearchDate.php:382
const previousOneHalf
Definition: SearchDate.php:518
const sameMonthLastFiscalQuarter
Definition: SearchDate.php:702
const sameDayLastFiscalYear
Definition: SearchDate.php:606
const fiveDaysAgo
Definition: SearchDate.php:70
const startOfThisMonth
const sameMonthFiscalYearBeforeLast
Definition: SearchDate.php:694
const previousRollingYear
Definition: SearchDate.php:574
const sameDayLastWeek
Definition: SearchDate.php:622
const thisBusinessWeek
const startOfLastRollingYear
Definition: SearchDate.php:878
const lastBusinessWeek
Definition: SearchDate.php:110
const startOfFiscalQuarterBeforeLast
Definition: SearchDate.php:774
const thisWeek
const thisRollingQuarter
const weekBeforeLastToDate
const thisRollingHalf
const sameFiscalQuarterLastFiscalYearToDate
Definition: SearchDate.php:678
const nextOneYear
Definition: SearchDate.php:390
const lastWeekToDate
Definition: SearchDate.php:270
const previousOneYear
Definition: SearchDate.php:550
const thisMonth
const twoDaysAgo
const lastRollingHalf
Definition: SearchDate.php:238
const yesterday
const weekAfterNextToDate
const sameDayFiscalQuarterBeforeLast
Definition: SearchDate.php:582
static $paramtypesmap
Definition: SearchDate.php:12
const startOfLastFiscalQuarterOneFiscalYearAgo
Definition: SearchDate.php:822
const threeMonthsAgoToDate
const sameWeekFiscalYearBeforeLast
Definition: SearchDate.php:734
const thisFiscalQuarter
const startOfNextMonth
Definition: SearchDate.php:934
const lastMonthOneFiscalQuarterAgo
Definition: SearchDate.php:198
const ninetyDaysAgo
Definition: SearchDate.php:406
const sameDayMonthBeforeLast
Definition: SearchDate.php:630
const sameFiscalQuarterFiscalYearBeforeLast
Definition: SearchDate.php:662
const thirtyDaysAgo
const lastFiscalHalf
Definition: SearchDate.php:118
const nextFourWeeks
Definition: SearchDate.php:342
const startOfWeekBeforeLast
const lastRollingYear
Definition: SearchDate.php:254
const sameFiscalQuarterLastFiscalYear
Definition: SearchDate.php:670
const nextOneQuarter
Definition: SearchDate.php:374
const startOfPreviousRollingYear
Definition: SearchDate.php:966
const startOfSameMonthLastFiscalYear
Definition: SearchDate.php:998
const previousMonthsThisFiscalYear
Definition: SearchDate.php:502
const fiscalQuarterBeforeLastToDate
Definition: SearchDate.php:46
const nextOneHalf
Definition: SearchDate.php:358
const weekBeforeLast
const sameFiscalHalfLastFiscalYear
Definition: SearchDate.php:646
const startOfNextBusinessWeek
Definition: SearchDate.php:902
const monthAfterNextToDate
Definition: SearchDate.php:286
const lastFiscalYear
Definition: SearchDate.php:174
const sameDayLastMonth
Definition: SearchDate.php:614
const startOfLastMonthOneFiscalQuarterAgo
Definition: SearchDate.php:846
const thisFiscalYearToDate
const startOfLastBusinessWeek
Definition: SearchDate.php:790
const thisFiscalQuarterToDate
const fourDaysFromNow
Definition: SearchDate.php:94
const startOfSameMonthLastFiscalQuarter
Definition: SearchDate.php:990
const lastFiscalHalfOneFiscalYearAgo
Definition: SearchDate.php:126
const thirtyDaysFromNow
const monthBeforeLastToDate
Definition: SearchDate.php:302
const nextFiscalHalf
Definition: SearchDate.php:318
const threeDaysFromNow
const sameFiscalHalfLastFiscalYearToDate
Definition: SearchDate.php:654
const startOfThisBusinessWeek
const nextOneMonth
Definition: SearchDate.php:366
const startOfThisYear
const startOfThisWeek
const nextBusinessWeek
Definition: SearchDate.php:310
const fiscalHalfBeforeLast
Definition: SearchDate.php:22
const fourDaysAgo
Definition: SearchDate.php:86
const threeDaysAgo
const monthBeforeLast
Definition: SearchDate.php:294
const sameDayWeekBeforeLast
Definition: SearchDate.php:638
const startOfSameFiscalQuarterLastFiscalYear
Definition: SearchDate.php:982
const previousOneMonth
Definition: SearchDate.php:526
const startOfSameFiscalHalfLastFiscalYear
Definition: SearchDate.php:974
const previousMonthsThisFiscalQuarter
Definition: SearchDate.php:494
const lastMonthTwoFiscalYearsAgo
Definition: SearchDate.php:230
const lastFiscalHalfToDate
Definition: SearchDate.php:134
const startOfThisFiscalYear
const thisMonthToDate
const sameMonthLastFiscalYear
Definition: SearchDate.php:718
const ninetyDaysFromNow
Definition: SearchDate.php:414
const lastFiscalQuarter
Definition: SearchDate.php:142
const startOfLastWeek
Definition: SearchDate.php:886
const previousOneDay
Definition: SearchDate.php:510
const lastMonthToDate
Definition: SearchDate.php:214
const startOfLastFiscalHalf
Definition: SearchDate.php:798
const previousRollingQuarter
Definition: SearchDate.php:566
const fiscalYearBeforeLastToDate
Definition: SearchDate.php:62
const sixtyDaysFromNow
Definition: SearchDate.php:758
const previousOneWeek
Definition: SearchDate.php:542
const sameMonthLastFiscalYearToDate
Definition: SearchDate.php:726
const startOfPreviousRollingHalf
Definition: SearchDate.php:950
const lastMonth
Definition: SearchDate.php:190
const startOfLastRollingHalf
Definition: SearchDate.php:862
const previousFiscalQuartersLastFiscalYear
Definition: SearchDate.php:430
const lastMonthTwoFiscalQuartersAgo
Definition: SearchDate.php:222
const monthAfterNext
Definition: SearchDate.php:278
const tomorrow
const previousOneQuarter
Definition: SearchDate.php:534
const startOfThisFiscalHalf
const startOfNextWeek
Definition: SearchDate.php:942
const fiscalQuarterBeforeLast
Definition: SearchDate.php:38
const previousMonthsLastFiscalYear
Definition: SearchDate.php:462
const sameMonthFiscalQuarterBeforeLast
Definition: SearchDate.php:686
const previousMonthsSameFiscalQuarterLastFiscalYear
Definition: SearchDate.php:478
const startOfLastFiscalYear
Definition: SearchDate.php:830
const startOfLastRollingQuarter
Definition: SearchDate.php:870
const lastMonthOneFiscalYearAgo
Definition: SearchDate.php:206
const startOfNextFiscalHalf
Definition: SearchDate.php:910
const startOfFiscalHalfBeforeLast
Definition: SearchDate.php:766
const previousMonthsThisFiscalHalf
Definition: SearchDate.php:486