ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Class for single dates. More...
Public Member Functions | |
__construct ($a_date='', $a_format=0) | |
Create new date object. More... | |
get ($a_format, $a_format_str='', $a_tz='') | |
get formatted date More... | |
__toString () | |
To string for dates. More... | |
Public Member Functions inherited from ilDateTime | |
__construct ($a_date=null, $a_format=0, $a_tz='') | |
Create new date object. More... | |
__clone () | |
__sleep () | |
__wakeup () | |
isNull () | |
Check if a date is null (Datetime == '0000-00-00 00:00:00', unixtime == 0,...) More... | |
switchTimeZone ($a_timezone_identifier='') | |
Switch timezone. More... | |
getTimeZoneIdentifier () | |
get timezone identifier More... | |
increment ($a_type, $a_count=1) | |
increment More... | |
getUnixTime () | |
get unix time More... | |
getUTCOffset () | |
get UTC offset More... | |
setDate ($a_date, $a_format) | |
Set date. More... | |
get ($a_format, $a_format_str='', $a_tz='') | |
get formatted date More... | |
__toString () | |
to string for date time objects Output is user time zone More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from ilDateTime | |
static | _before (ilDateTime $start, ilDateTime $end, $a_compare_field='', $a_tz='') |
compare two dates and check start is before end This method does not consider tz offsets. More... | |
static | _equals (ilDateTime $start, ilDateTime $end, $a_compare_field='', $a_tz='') |
Check if two date are equal. More... | |
static | _after (ilDateTime $start, ilDateTime $end, $a_compare_field='', $a_tz='') |
compare two dates and check start is after end This method does not consider tz offsets. More... | |
static | _within (ilDateTime $dt, ilDateTime $start, ilDateTime $end, $a_compare_field='', $a_tz='') |
Check whether an date is within a date duration given by start and end. More... | |
Data Fields inherited from ilDateTime | |
const | YEAR = 'year' |
const | MONTH = 'month' |
const | WEEK = 'week' |
const | DAY = 'day' |
const | HOUR = 'hour' |
const | MINUTE = 'minute' |
Protected Member Functions inherited from ilDateTime | |
parsePartsToDate ($a_year, $a_month, $a_day, $a_hour=null, $a_min=null, $a_sec=null, $a_timezone=null) | |
Protected Attributes inherited from ilDateTime | |
$log | |
$timezone = null | |
$default_timezone = null | |
$dt_obj | |
Class for single dates.
ilDate('2008-03-15') is nothing else than ilDateTime('2008-03-15',IL_CAL_DATE,'UTC')
Definition at line 36 of file class.ilDate.php.
ilDate::__construct | ( | $a_date = '' , |
|
$a_format = 0 |
|||
) |
Create new date object.
public
mixed | integer string following the format given as the second parameter |
int | format of date presentation |
Definition at line 47 of file class.ilDate.php.
References ilTimeZone\_getInstance(), and ilTimeZone\UTC.
ilDate::__toString | ( | ) |
ilDate::get | ( | $a_format, | |
$a_format_str = '' , |
|||
$a_tz = '' |
|||
) |
get formatted date
public
int | format type |
string | format string |
Definition at line 61 of file class.ilDate.php.
Referenced by ilCalendarSchedule\getByDay(), and ilCalendarAppointmentGUI\initInitialDate().