ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilDate Class Reference

Class for single dates. More...

+ Inheritance diagram for ilDate:
+ Collaboration diagram for ilDate:

Public Member Functions

 __construct ($a_date= '', $a_format=0)
 Create new date object.
 get ($a_format, $a_format_str= '')
 get formatted date
- Public Member Functions inherited from ilDateTime
 __construct ($a_date=null, $a_format=0, $a_tz= '')
 Create new date object.
 isNull ()
 Check if a date is null (Datetime == '0000-00-00 00:00:00', unixtime == 0,...)
 switchTimeZone ($a_timezone_identifier= '')
 Switch timezone.
 getTimeZoneIdentifier ()
 get timezone identifier
 increment ($a_type, $a_count=1)
 increment
 getUnixTime ()
 get unix time
 getUTCOffset ()
 get UTC offset
 setDate ($a_date, $a_format)
 set date
 get ($a_format, $a_format_str= '', $a_tz= '')
 get formatted date
 __toString ()
 to string

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.
static _equals (ilDateTime $start, ilDateTime $end, $a_compare_field= '', $a_tz= '')
 Check if two date are equal.
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.
- Data Fields inherited from ilDateTime
const YEAR = 'year'
const MONTH = 'month'
const WEEK = 'week'
const DAY = 'day'
const HOUR = 'hour'
- Protected Attributes inherited from ilDateTime
 $log
 $timezone = null
 $default_timezone = null
 $unix = 0

Detailed Description

Class for single dates.

ilDate('2008-03-15') is nothing else than ilDateTime('2008-03-15',IL_CAL_DATE,'UTC')

Author
Stefan Meyer smeye.nosp@m.r@da.nosp@m.tabay.nosp@m..de
Version
$Id$

Definition at line 36 of file class.ilDate.php.

Constructor & Destructor Documentation

ilDate::__construct (   $a_date = '',
  $a_format = 0 
)

Create new date object.

public

Parameters
mixedinteger string following the format given as the second parameter
intformat of date presentation

Definition at line 47 of file class.ilDate.php.

References ilTimeZone\_getInstance(), and ilTimeZone\UTC.

{
$this->default_timezone = ilTimeZone::_getInstance('UTC');
}

+ Here is the call graph for this function:

Member Function Documentation

ilDate::get (   $a_format,
  $a_format_str = '' 
)

get formatted date

public

Parameters
intformat type
stringformat string

Definition at line 61 of file class.ilDate.php.

Referenced by ilCalendarDayGUI\__construct(), ilCalendarWeekGUI\__construct(), ilCalendarSchedule\getByDay(), and ilCalendarAppointmentGUI\initSeed().

{
return parent::get($a_format,$a_format_str);
}

+ Here is the caller graph for this function:


The documentation for this class was generated from the following file: