BlueShoes Application Framework made with PHP http://www.blueshoes.org/


Packageindex Classtrees Modulegroups Elementlist Report XML Files

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:

Authorsandrej arn <andrej@arn.li>
Version4.0.$id$
Copyrightblueshoes.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

Public Method Summary

bool

isInFuture(string $date, [ string $time ])

tells if the given date(time) is in the future.
bool

isInPast(string $date, [ string $time ])

tells if the given date(time) is in the past.
integer

weekOfYear(string $day, string $month, string $year)

Returns week of the year, first Sunday is first day of first week
void

Bs_DateUtil()

Warning: documentation is missing.

Private Method Summary

void

isValidDate(int $day, int $month, int $year)

bool

isLeapYear(string $year)

int

dayOfWeek(string $date)

returns the day-of-week number for the given date. 0 means sunday.
void

setNow()

Warning: documentation is missing.
void

isInLeapYear( $date)

Warning: documentation is missing.

Private Field Summary

unknown

$_Bs_String

reference to the global pseudostatic Bs_String object.
array

$_now

hash with date/time information about the current moment.

Private Constant Summary

BS_DATEUTIL_VERSION >>4.0.$x$<< Warning: documentation is missing.

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
int $day
(1-31)
int $month
(1-12)
int $year
(1-32767)
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




Packageindex Classtrees Modulegroups Elementlist Report XML Files
PHPDoc 1.0beta