[ Index ]

Source Code Reference for V1.00

title

Body

[close]

/classes/ -> date.class.php (summary)

(no description)

File Size: 526 lines (16 kb)
Included or required: 5 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

CDate:: (14 methods):
  compare()
  addDays()
  addMonths()
  dateDiff()
  setTime()
  isWorkingDay()
  getAMPM()
  next_working_day()
  prev_working_day()
  addDuration()
  calcDuration()
  workingDaysInSpan()
  duplicate()
  calcFinish()


Class: CDate  - X-Ref

web2Project implementation of the Pear Date class

This provides customised extensions to the Date class to leave the
Date package as 'pure' as possible
compare($d1, $d2, $convertTZ = false)   X-Ref
Overloaded compare method

The convertTZ calls are time intensive calls.     When a compare call is
made in a recussive loop the lag can be significant.

addDays($n)   X-Ref
Adds (+/-) a number of days to the current date.

author: J. Christopher Pereira <kripper@users.sf.net>
param: int Positive or negative number of days

addMonths($n)   X-Ref
Adds (+/-) a number of months to the current date.

author: Andrew Eddie <eddieajau@users.sourceforge.net>
param: int Positive or negative number of months

dateDiff($when)   X-Ref
New method to get the difference in days the stored date

author: Andrew Eddie <eddieajau@users.sourceforge.net>
param: Date The date to compare to

setTime($h = 0, $m = 0, $s = 0)   X-Ref
New method that sets hour, minute and second in a single call

author: Andrew Eddie <eddieajau@users.sourceforge.net>
param: int hour
param: int minute
param: int second

isWorkingDay()   X-Ref
No description

getAMPM()   X-Ref
No description

next_working_day($preserveHours = false)   X-Ref
No description

prev_working_day($preserveHours = false)   X-Ref
No description

addDuration($duration = '8', $durationType = '1')   X-Ref
No description

calcDuration($e)   X-Ref
No description

workingDaysInSpan($e)   X-Ref
No description

duplicate()   X-Ref
Clone the current CDate object

return: object    The new record object or null if error

calcFinish($durn, $durnType)   X-Ref
No description



Generated: Thu Nov 20 03:00:14 2008 Cross-referenced by PHPXref 0.7