void a_month(
string
$p_when
)
|
|
set dates for a month
Parameters:
|
string |
$p_when: |
date string to expand to a month |
void a_quarter(
string
$p_when
)
|
|
set dates for a quarter
Parameters:
|
string |
$p_when: |
date string to expand to a quarter |
void a_week(
string
$p_when, [int
$p_weeks = 1]
)
|
|
set dates for a week
Parameters:
|
string |
$p_when: |
date string to expand to a week (Sun to Sat) |
|
int |
$p_weeks: |
number of weeks |
void a_year(
string
$p_when
)
|
|
set dates for a year
Parameters:
|
string |
$p_when: |
date string to expand to a year |
get number of days in interval
void get_end_formatted(
)
|
|
get formatted end date
void get_end_timestamp(
)
|
|
get end date in unix timestamp format
return a matching SQL clause
create an SQL clause that matches the set date.
API Tags:
void get_start_formatted(
)
|
|
get formatted start date
void get_start_timestamp(
)
|
|
get start date in unix timestamp format
string get_text_clause(
)
|
|
return a matching text clause
create an text clause that matches the set date.
API Tags:
void last_week(
[int
$p_weeks = 1]
)
|
|
set dates for last week
Parameters:
|
int |
$p_weeks: |
number of weeks |
set dates for this month to date
void period_selector(
string
$p_control_name
)
|
|
print a period selector
Parameters:
set dates for this quarter to date
void set_period_from_selector(
string
$p_control_name, [string
$p_start_field = 'start_date'], [string
$p_end_field = 'end_date']
)
|
|
set date based on period selector
Parameters:
|
string |
$p_control_name: |
|
|
string |
$p_start_field: |
|
|
string |
$p_end_field: |
|
set dates for this quarter
set dates for this week to date
set dates for current year, ending today