-
Notifications
You must be signed in to change notification settings - Fork 0
cPeriod::AsString()
Rainer Stötter edited this page Apr 28, 2017
·
14 revisions
public string libdatephp\cPeriod::AsString(integer $representation)
- Namespace : libdatephp
- Class name: cPeriod
- This method is defined by libdatephp\cPeriod
AsString() returns a string of the period of time in day.month.year notation.
Example:
use libdatephp;
$p = new cPeriod( new cDate( 11, 23, 2016 ), new cDate( 11, 25, 2016 ) );
echo $p->AsString( );
- $representation integer - <p>how the output string should be formatted - defaults to self::Representation_DMY ( DMY notation). Can be set to Representation_MDY or Representation_SQL, too</p>
string a string with the dates of the period of time
This wiki page is part of the documentation of the PHP class library libdatephp