Public Member Functions

BeTimeHelper Class Reference

Date, Time Helper that extend TimeHelper use strftime and its format instead of date. More...

List of all members.

Public Member Functions

 date ($date, $format=null, $invalid=false, $userOffset=null)
 format date
 dateTime ($date, $format=null, $invalid=false, $userOffset=null)
 format date
 day ($date)
 get day from date
 dayName ($date)
 get day name from date
 month ($date)
 get month from date
 monthName ($date)
 get month name from date
 year ($date)
 get year from date
 format ($format= '%d-%m-%Y', $date, $invalid=false, $userOffset=null)
 format date
 dateDiff ($dateStart, $dateEnd, $period="minutes", $complete=false)
 calculate the difference between two dates

Detailed Description

Date, Time Helper that extend TimeHelper use strftime and its format instead of date.

Version:
$Revision$ $LastChangedBy$ $LastChangedDate$

$Id$

Definition at line 36 of file be_time.php.


Member Function Documentation

BeTimeHelper::date ( date,
format = null,
invalid = false,
userOffset = null 
)

format date

Parameters:
string $date
string $format
boolean $invalid
int $userOffset
Returns:
mixed string|boolean

Definition at line 65 of file be_time.php.

References format().

BeTimeHelper::dateDiff ( dateStart,
dateEnd,
period = "minutes",
complete = false 
)

calculate the difference between two dates

Parameters:
string $dateStart
string $dateEnd
string $period (units, default minutes)
bool $complete true return also $period
Returns:
mixed int|string

Definition at line 166 of file be_time.php.

BeTimeHelper::dateTime ( date,
format = null,
invalid = false,
userOffset = null 
)

format date

Parameters:
string $date
string $format
boolean $invalid
int $userOffset
Returns:
mixed string|boolean

Definition at line 81 of file be_time.php.

References format().

BeTimeHelper::day ( date  ) 

get day from date

Parameters:
string $date
Returns:
mixed string|boolean

Definition at line 94 of file be_time.php.

References format().

BeTimeHelper::dayName ( date  ) 

get day name from date

Parameters:
string $date
Returns:
mixed string|boolean

Definition at line 104 of file be_time.php.

References format().

BeTimeHelper::format ( format = '%d-%m-%Y',
date,
invalid = false,
userOffset = null 
)

format date

Parameters:
string $format
string $date
boolean $invalid
int $userOffset
Returns:
mixed string|boolean
See also:
TimeHelper::format()

Definition at line 149 of file be_time.php.

Referenced by date(), dateTime(), day(), dayName(), month(), monthName(), and year().

BeTimeHelper::month ( date  ) 

get month from date

Parameters:
string $date
Returns:
mixed string|boolean

Definition at line 114 of file be_time.php.

References format().

BeTimeHelper::monthName ( date  ) 

get month name from date

Parameters:
string $date
Returns:
mixed string|boolean

Definition at line 124 of file be_time.php.

References format().

BeTimeHelper::year ( date  ) 

get year from date

Parameters:
string $date
Returns:
mixed string|boolean

Definition at line 134 of file be_time.php.

References format().


The documentation for this class was generated from the following file:
Generated on Fri Dec 11 2015 15:29:46 by Doxygen 1.7.1  BEditaBEdita 3.7 Corylus