The TriggerUtils type exposes the following members.
Name | Description | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ComputeFireTimes |
Returns a list of Dates that are the next fire times of a
Trigger.
The input trigger will be cloned before any work is done, so you need
not worry about its state being altered by this method.
| ||||||||||||||||||||||||||||||||||||||||
ComputeFireTimesBetween |
Returns a list of Dates that are the next fire times of a Trigger
that fall within the given date range. The input trigger will be cloned
before any work is done, so you need not worry about its state being
altered by this method.
NOTE: if this is a trigger that has previously fired within the given date range, then firings which have already occured will not be listed in the output List. | ||||||||||||||||||||||||||||||||||||||||
Equals | (Inherited from Object.) | ||||||||||||||||||||||||||||||||||||||||
GetEvenHourDate |
Returns a date that is rounded to the next even hour above the given
date.
For example an input date with a time of 08:13:54 would result in a date with the time of 09:00:00. If the date's time is in the 23rd hour, the date's 'day' will be promoted, and the time will be set to 00:00:00. | ||||||||||||||||||||||||||||||||||||||||
GetEvenHourDateBefore |
Returns a date that is rounded to the previous even hour below the given
date.
For example an input date with a time of 08:13:54 would result in a date with the time of 08:00:00. | ||||||||||||||||||||||||||||||||||||||||
GetEvenMinuteDate |
Returns a date that is rounded to the next even minute above the given
date.
For example an input date with a time of 08:13:54 would result in a date with the time of 08:14:00. If the date's time is in the 59th minute, then the hour (and possibly the day) will be promoted. | ||||||||||||||||||||||||||||||||||||||||
GetEvenMinuteDateBefore |
Returns a date that is rounded to the previous even minute below the
given date.
For example an input date with a time of 08:13:54 would result in a date with the time of 08:13:00. | ||||||||||||||||||||||||||||||||||||||||
GetEvenSecondDate |
Returns a date that is rounded to the next even second above the given
date.
| ||||||||||||||||||||||||||||||||||||||||
GetEvenSecondDateBefore |
Returns a date that is rounded to the previous even second below the
given date.
For example an input date with a time of 08:13:54.341 would result in a date with the time of 08:13:00.000. | ||||||||||||||||||||||||||||||||||||||||
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | ||||||||||||||||||||||||||||||||||||||||
GetNextGivenMinuteDate |
Returns a date that is rounded to the next even multiple of the given
minute.
For example an input date with a time of 08:13:54, and an input minute-base of 5 would result in a date with the time of 08:15:00. The same input date with an input minute-base of 10 would result in a date with the time of 08:20:00. But a date with the time 08:53:31 and an input minute-base of 45 would result in 09:00:00, because the even-hour is the next 'base' for 45-minute intervals. More examples:
| ||||||||||||||||||||||||||||||||||||||||
GetNextGivenSecondDate |
Returns a date that is rounded to the next even multiple of the given
minute.
The rules for calculating the second are the same as those for calculating the minute in the method GetNextGivenMinuteDate(Nullable DateTime , Int32). | ||||||||||||||||||||||||||||||||||||||||
GetOffset |
Gets the offset from UT for the given date in the given timezone,
taking into account daylight savings.
| ||||||||||||||||||||||||||||||||||||||||
GetType | Gets the Type of the current instance. (Inherited from Object.) | ||||||||||||||||||||||||||||||||||||||||
MakeDailyTrigger(Int32, Int32) |
Make a trigger that will fire every day at the given time.
The generated trigger will not have its name, group, or end-time set. The Start time defaults to 'now'. | ||||||||||||||||||||||||||||||||||||||||
MakeDailyTrigger(String, Int32, Int32) |
Make a trigger that will fire every day at the given time.
The generated trigger will not have its group or end-time set. The Start time defaults to 'now'. | ||||||||||||||||||||||||||||||||||||||||
MakeHourlyTrigger |
Make a trigger that will fire every hour, indefinitely.
The generated trigger will not have its name, group, or end-time set. The Start time defaults to 'now'. | ||||||||||||||||||||||||||||||||||||||||
MakeHourlyTrigger(Int32) |
Make a trigger that will fire every N hours, indefinitely.
The generated trigger will not have its name, group, or end-time set. The Start time defaults to 'now'. | ||||||||||||||||||||||||||||||||||||||||
MakeHourlyTrigger(String) |
Make a trigger that will fire every hour, indefinitely.
The generated trigger will not have its group, or end-time set. The Start time defaults to 'now'. | ||||||||||||||||||||||||||||||||||||||||
MakeHourlyTrigger(Int32, Int32) |
Make a trigger that will fire every N hours, with the given number of
repeats.
The generated trigger will not have its name, group, or end-time set. The Start time defaults to 'now'. | ||||||||||||||||||||||||||||||||||||||||
MakeHourlyTrigger(String, Int32, Int32) |
Make a trigger that will fire every N hours, with the given number of
repeats.
The generated trigger will not have its group, or end-time set. The Start time defaults to 'now'. | ||||||||||||||||||||||||||||||||||||||||
MakeImmediateTrigger(Int32, TimeSpan) |
Make a trigger that will fire times, waiting
between each fire.
| ||||||||||||||||||||||||||||||||||||||||
MakeImmediateTrigger(String, Int32, TimeSpan) |
Make a trigger that will fire times, waiting
between each fire.
The generated trigger will not have its name, group, or end-time set. The Start time defaults to 'now'. | ||||||||||||||||||||||||||||||||||||||||
MakeMinutelyTrigger |
Make a trigger that will fire every minute, indefinitely.
The generated trigger will not have its name, group, or end-time set. The Start time defaults to 'now'. | ||||||||||||||||||||||||||||||||||||||||
MakeMinutelyTrigger(Int32) |
Make a trigger that will fire every N minutes, indefinitely.
The generated trigger will not have its name, group, or end-time set. The Start time defaults to 'now'. | ||||||||||||||||||||||||||||||||||||||||
MakeMinutelyTrigger(String) |
Make a trigger that will fire every minute, indefinitely.
The generated trigger will not have its group, or end-time set. The Start time defaults to 'now'. | ||||||||||||||||||||||||||||||||||||||||
MakeMinutelyTrigger(Int32, Int32) |
Make a trigger that will fire every N minutes, with the given number of
repeats.
The generated trigger will not have its name, group, or end-time set. The Start time defaults to 'now'. | ||||||||||||||||||||||||||||||||||||||||
MakeMinutelyTrigger(String, Int32, Int32) |
Make a trigger that will fire every N minutes, with the given number of
repeats.
The generated trigger will not have its group, or end-time set. The Start time defaults to 'now'. | ||||||||||||||||||||||||||||||||||||||||
MakeMonthlyTrigger(Int32, Int32, Int32) |
Make a trigger that will fire every month at the given day and time.
The generated trigger will not have its name, group, or end-time set. The Start time defaults to 'now'. If the day of the month specified does not occur in a given month, a firing will not occur that month. (i.e. if dayOfMonth is specified as 31, no firing will occur in the months of the year with fewer than 31 days). | ||||||||||||||||||||||||||||||||||||||||
MakeMonthlyTrigger(String, Int32, Int32, Int32) |
Make a trigger that will fire every month at the given day and time.
The generated trigger will not have its group, or end-time set. The Start time defaults to 'now'. If the day of the month specified does not occur in a given month, a firing will not occur that month. (i.e. if dayOfMonth is specified as 31, no firing will occur in the months of the year with fewer than 31 days). | ||||||||||||||||||||||||||||||||||||||||
MakeSecondlyTrigger |
Make a trigger that will fire every second, indefinitely.
The generated trigger will not have its name, group, or end-time set. The Start time defaults to 'now'. | ||||||||||||||||||||||||||||||||||||||||
MakeSecondlyTrigger(Int32) |
Make a trigger that will fire every N seconds, indefinitely.
The generated trigger will not have its name, group, or end-time set. The Start time defaults to 'now'. | ||||||||||||||||||||||||||||||||||||||||
MakeSecondlyTrigger(String) |
Make a trigger that will fire every second, indefinitely.
The generated trigger will not have its group, or end-time set. The Start time defaults to 'now'. | ||||||||||||||||||||||||||||||||||||||||
MakeSecondlyTrigger(Int32, Int32) |
Make a trigger that will fire every N seconds, with the given number of
repeats.
The generated trigger will not have its name, group, or end-time set. The Start time defaults to 'now'. | ||||||||||||||||||||||||||||||||||||||||
MakeSecondlyTrigger(String, Int32, Int32) |
Make a trigger that will fire every N seconds, with the given number of
repeats.
The generated trigger will not have its group, or end-time set. The Start time defaults to 'now'. | ||||||||||||||||||||||||||||||||||||||||
MakeWeeklyTrigger(DayOfWeek, Int32, Int32) |
Make a trigger that will fire every week at the given day and time.
The generated trigger will not have its name, group, or end-time set. The Start time defaults to 'now'. | ||||||||||||||||||||||||||||||||||||||||
MakeWeeklyTrigger(String, DayOfWeek, Int32, Int32) |
Make a trigger that will fire every week at the given day and time.
The generated trigger will not have its group, or end-time set. The Start time defaults to 'now'. | ||||||||||||||||||||||||||||||||||||||||
SetTriggerIdentity(Trigger, String) |
Set the given Trigger's name to the given value, and its
group to the default group (DefaultGroup).
| ||||||||||||||||||||||||||||||||||||||||
SetTriggerIdentity(Trigger, String, String) |
Set the given Trigger's name to the given value, and its
group to the given group.
| ||||||||||||||||||||||||||||||||||||||||
ToString | (Inherited from Object.) | ||||||||||||||||||||||||||||||||||||||||
TranslateTime |
Translate a date and time from a users timezone to the another
(probably server) timezone to assist in creating a simple trigger with
the right date and time.
| ||||||||||||||||||||||||||||||||||||||||
UseDaylightTime |
This functions determines if the TimeZone uses daylight saving time
|
Name | Description | |
---|---|---|
LastDayOfMonth |
Constant indicating last day of month.
| |
MillisecondsInDay |
Milliseconds in day.
| |
MillisecondsInHour |
Milliseconds in hour.
| |
MillisecondsInMinute |
Milliseconds in minute.
| |
SecondsInDay |
Seconds in day.
|