|
|
|
File: C:/usr/local/lib/php/blueshoes-4.2/core/date/Bs_DateUtil.class.php
BlueShoes Application Framework - Date
Bs_DateUtil
Bs_Object | +-- Bs_DateUtil
**********************************************************************
|
private class Bs_DateUtil extends Bs_Object
**********************************************************************
dependencies:
| Authors | andrej arn <andrej@arn.li> |
| Version | 4.0.$id$ |
| Copyright | blueshoes.org |
|
| |
|
Methods inherited from Bs_Object |
| isex, isexception, tostring, tohtml, persist, unpersist, bs_object, bbsetoutput, bbawake, bbisawake, bbxmsg, bbxfunctionstart, bbxfunctionend, bbxecho, bbxvar, bbxvardump, bbforcetrace, bbbufferstart, bbbufferget, bbbufferendflush, bbbufferendclean |
|
|
|
|
|
Private Field Summary |
| unknown |
$_Bs_Stringreference to the global pseudostatic Bs_String object. |
| array |
$_nowhash with date/time information about the current moment. |
|
|
|
Public Method Details |
isInFuture |
|
public bool isInFuture( string $date, [ string $time ] )
|
| |
tells if the given date(time) is in the future.
|
| Parameter |
|
| string |
$date |
|
|
(2001/12/28) |
|
|
| string |
$time |
= >>null<< |
|
(24:30:58) |
|
| Returns |
bool |
|
isInPast |
|
public bool isInPast( string $date, [ string $time ] )
|
| |
tells if the given date(time) is in the past.
|
| Parameter |
|
| string |
$date |
|
|
(2001/12/28) |
|
|
| string |
$time |
= >>null<< |
|
(24:30:58) |
|
| Returns |
bool |
|
weekOfYear |
|
public integer weekOfYear( string $day, string $month, string $year )
|
| |
Returns week of the year, first Sunday is first day of first week
|
| Parameter |
|
| string |
$day |
|
|
in format CCYY |
|
|
| string |
$month |
|
|
in format MM |
|
|
| string |
$year |
|
|
in format DD |
|
| Returns |
integer $week_number |
|
Bs_DateUtil |
|
public void Bs_DateUtil( )
|
| |
Warning: documentation is missing.
|
| Returns |
void |
|
|
Private Method Details |
isValidDate |
|
private void isValidDate( int $day, int $month, int $year )
|
| |
|
| Parameter |
|
|
|
|
|
|
| Returns |
void |
|
isLeapYear |
|
private bool isLeapYear( string $year )
|
| |
|
| Parameter |
|
| string |
$year |
|
|
Warning: documentation is missing. |
|
| Returns |
bool |
| Throws |
null |
|
dayOfWeek |
|
private int dayOfWeek( string $date )
|
| |
returns the day-of-week number for the given date. 0 means sunday.
|
| Parameter |
|
| string |
$date |
|
|
(2001/12/28) |
|
| Returns |
int day of week, 0=sunday |
|
setNow |
|
private void setNow( )
|
| |
Warning: documentation is missing.
|
| Returns |
void |
|
isInLeapYear |
|
private void isInLeapYear( $date )
|
| |
Warning: documentation is missing.
|
| Parameter |
|
|
$date |
|
|
Warning: documentation is missing. |
|
| Returns |
void |
|
|
Private Field Details |
$_Bs_String |
|
private unknown $_Bs_String
>><<
reference to the global pseudostatic Bs_String object.
|
|
$_now |
|
private array $_now
>><<
hash with date/time information about the current moment.
structure:KEY EXAMPLE'timestamp' => 982591823'datetime' => 2001/02/19 15:10:23'date' => 2001/02/19'time' => 15:10:23'year' => 2001'month' => 02'day' => 19'hour' => 15'minute' => 10'second' => 23
|
|
|
Private Constant Details |
BS_DATEUTIL_VERSION
define( BS_DATEUTIL_VERSION, >>4.0.$x$<< )
Case: default: case sensitive
|
|
|
|
|
|
| PHPDoc 1.0beta |