public function DatexObject::monthFirstDay in Datex 7
Same name and namespace in other branches
- 7.2 datex_api/datex_api.class.inc \DatexObject::monthFirstDay()
Returns an object containing first day of Jalali month.
File
- datex_api/
datex_api_classes.inc, line 848 - API and helper functions used by other datex modules.
Class
- DatexObject
- This class is Jalali equivilant of php DateTime. It also has some functionallity from object defiend in Drupal's date module DateObject.
Code
public function monthFirstDay() {
$date = clone $this;
$date
->setDate(NULL, NULL, 1);
return $date;
}