phpCoreLib2
[ class tree: phpCoreLib2 ] [ index: phpCoreLib2 ] [ all elements ]

Class: DTime

Source Location: /DateTime/DTime.php

Class Overview

DObject
   |
   --DTime

Date utility class


Implements interfaces:

Variables

Methods


Inherited Constants

Inherited Variables

Inherited Methods

Class: DObject

DObject::__construct()
Constructor
DObject::debug()
Debig
DObject::getClassMembers()
Gets member variables of the instance
DObject::getClassMemberType()
Gets class member type
DObject::getClassMethods()
Gets classes of the class
DObject::getClassName()
Gets class name
DObject::PHPSerialize()
Gets serialized string of the class
DObject::trace()
Trace
DObject::__destruct()
Descructor
DObject::__toString()
Returns String equivalent of the object.

Class Details

[line 16]
Date utility class



[ Top ]


Class Variables

$hours =  null

[line 22]

Hours



Tags:

access:  public

Type:   integer


[ Top ]

$minutes =  null

[line 28]

Minutes



Tags:

access:  public

Type:   integer


[ Top ]

$seconds =  null

[line 34]

Seconds



Tags:

access:  public

Type:   int


[ Top ]



Class Methods


constructor __construct [line 44]

DTime __construct( [int $hours = null], [int $minutes = null], [int $seconds = null])

Constructor



Tags:

access:  public


Overrides DObject::__construct() (Constructor)

Parameters:

int   $hours  
int   $minutes  
int   $seconds  

[ Top ]

method addHours [line 112]

void addHours( int $hours)

Adds hours



Tags:

access:  public


Parameters:

int   $hours  

[ Top ]

method addMinutes [line 100]

void addMinutes( int $minutes)

Adds minutes



Tags:

access:  public


Parameters:

int   $minutes  

[ Top ]

method addSeconds [line 63]

void addSeconds( int $seconds)

Adds $seconds to current time



Tags:

access:  public


Parameters:

int   $seconds  

[ Top ]

method addTime [line 124]

void addTime( DTime $DTimeObject)

Adds another DTime object



Tags:

access:  public


Parameters:

DTime   $DTimeObject  

[ Top ]

method compare [line 245]

int compare( DTime $DTimeObject)

Comapres 2 TDime objects



Tags:

access:  public


Parameters:

DTime   $DTimeObject  

[ Top ]

method fromMySQLTime [line 199]

void fromMySQLTime( string $time)

Populates data from MySQL date



Tags:

access:  public


Parameters:

string   $time  

[ Top ]

method fromTimestamp [line 176]

void fromTimestamp( int $timestamp)

Populates data from timestamp



Tags:

access:  public


Parameters:

int   $timestamp  

[ Top ]

method getClone [line 297]

DTime getClone( )

Close object



Tags:

access:  public



Implementation of:
DClonable::getClone()
get clone method
[ Top ]

method getTimeDifference [line 153]

DTime getTimeDifference( DTime $DTimeObject)

Gets difference between 2 DTime objects



Tags:

access:  public


Parameters:

DTime   $DTimeObject  

[ Top ]

method subTime [line 136]

void subTime( DTime $DTimeObject)

Removes DTime time



Tags:

access:  public


Parameters:

DTime   $DTimeObject  

[ Top ]

method toFloatHoursMinutes [line 165]

float toFloatHoursMinutes( )

Gets time as float from hours and minutes



Tags:

access:  public


[ Top ]

method toMinutes [line 225]

int toMinutes( )

Returns data to minutes



Tags:

access:  public


[ Top ]

method toMySQLTime [line 211]

string toMySQLTime( )

Returs data to MySQL time



Tags:

access:  public


[ Top ]

method toSeconds [line 235]

int toSeconds( )

Returns data to seconds



Tags:

access:  public


[ Top ]

method toTimestamp [line 188]

int toTimestamp( )

Returs timestamp



Tags:

access:  public


[ Top ]

method __toString [line 280]

string __toString( [string $divideSymbol = ":"])

Hour equivalent of time divided with $divideSymbol



Tags:

access:  public


Overrides DObject::__toString() (Returns String equivalent of the object.)

Parameters:

string   $divideSymbol  

[ Top ]


Documentation generated on Sat, 17 Apr 2010 22:13:37 +0300 by phpDocumentor 1.4.3