define |
"BASE" "../../.." |
---|---|
package |
Subsystems |
duration(integer $time_a, integer $time_b, boolean $iso8601 = false) : array
node |
Subsystems:expDateTime |
---|
integer
The first timestamp
integer
The second timestamp
boolean
return duration as an iso8601 string
array
endOfDayTimestamp(integer $timestamp) : integer
node |
Subsystems:expDateTime |
---|
integer
The timestamp to check.
integer
endOfMonthDay(integer $timestamp) : integer
node |
Subsystems:expDateTime |
---|
integer
The timestamp to check.
integer
endOfMonthTimestamp(integer $timestamp) : integer
node |
Subsystems:expDateTime |
---|
integer
The original timestamp to use when calculating.
integer
endOfWeekTimestamp(integer $timestamp) : integer
node |
Subsystems:expDateTime |
---|
integer
The timestamp to check.
integer
endOfYearTimestamp(integer $timestamp) : integer
node |
Subsystems:expDateTime |
---|
integer
The original timestamp to use when calculating.
integer
format_date( $timestamp, string $format = DISPLAY_DATE_FORMAT) : string
string
string
is_date( $str)
monthlyDaysTimestamp(null $time = null) : array
null
array
monthsDropdown( $controlName, $default_month) : string
state |
UNDOCUMENTED |
---|---|
node |
To Be Deprecated |
string
recurringDailyDates(integer $start, integer $end, integer $freq) : array
This is the simplest form of recurrence, events are spaced a given number of days apart.
node |
Subsystems:expDateTime |
---|
integer
The start of the recurrence range
integer
The end of the recurrence range
integer
Frequency of recurrence - 2 means every 2 days, and 1 means every day.
array
recurringMonthlyDates(integer $start, integer $end, integer $freq, boolean $by_day = false) : array
node |
Subsystems:expDateTime |
---|
integer
The start of the recurrence range
integer
The end of the recurrence range
integer
Monthly frequency - 1 means every month, 2 means every other month, etc.
boolean
Whether or not to recur by the weekday and week offset (in case of true), or by the date (in case of false).
array
recurringWeeklyDates(integer $start, integer $end, integer $freq, array $days) : array
For a technical discussion of this function and the mathematics involved, please see the sdk/analysis/subsystems/datetime.txt file.
node |
Subsystems:expDateTime |
---|
integer
The start of the recurrence range
integer
The end of the recurrence range
integer
Weekly frequency - 1 means every week, 2 means every other week, etc.
array
The weekdays (in integer notation, 0 = Sunday, etc.) that should be matched. A MWF recurrence rotation would contain the values 1,3 and 5.
array
recurringYearlyDates(integer $start, integer $end, integer $freq) : array
Unlike monthly recurrence, yearly cannot do recurrence like 'the 17th sunday of the year'.
node |
Subsystems:expDateTime |
---|
integer
The start of the recurrence range
integer
The end of the recurrence range
integer
Yearly frequency - 1 means every year, 2 means every other year, etc.
array
relativeDate( $posted_date) : string
.)
string
sameDay( $date1, $date2) : boolean
boolean
startOfDayTimestamp(integer $timestamp) : integer
node |
Subsystems:expDateTime |
---|
integer
The timestamp to check.
integer
startOfMonthTimestamp(integer $timestamp) : integer
node |
Subsystems:expDateTime |
---|
integer
The original timestamp to use when calculating.
integer
startOfWeekTimestamp(integer $timestamp) : integer
node |
Subsystems:expDateTime |
---|
integer
The timestamp to check.
integer
startOfYearTimestamp(integer $timestamp) : integer
node |
Subsystems:expDateTime |
---|
integer
The original timestamp to use when calculating.
integer