-
Notifications
You must be signed in to change notification settings - Fork 0
cDate::Year()
Rainer Stötter edited this page May 9, 2017
·
10 revisions
public integer libdatephp\cDate::Year()
- Namespace : libdatephp
- Class name: cDate
- This method is defined by libdatephp\cDate
Year() returns the year part of the date
Example:
$dt = new \libdatephp\cDate( 1, 1, 2017 );
for ( $i = 0; $i < 12; $i++ ) {
$dt->GoFirstWeekOfMonthISO( );
echo "\n The first week of the month " . $dt->Month( ) . ' in ' . $dt->Year( ) . ' starts on the ' . $dt->AsSQL( );
echo '. The month has ' . $dt->WeeksOfMonth( ) . ' calendar weeks ';
$dt->AddMonths( );
}
integer the year part
This wiki page is part of the documentation of the PHP class library libdatephp