public static function DatexObjectUtils::getByName in Datex 7
Get current part of date as specified in name. Any of day, month, year.
3 calls to DatexObjectUtils::getByName()
- DatexObjectUtils::getDay in datex_api/
datex_api_classes.inc - Returns current Jalali day.
- DatexObjectUtils::getMonth in datex_api/
datex_api_classes.inc - Returns current Jalali month.
- DatexObjectUtils::getYear in datex_api/
datex_api_classes.inc - Returns current Jalali Year.
File
- datex_api/
datex_api_classes.inc, line 1040 - API and helper functions used by other datex modules.
Class
- DatexObjectUtils
- Utitilities to work with a DatexObject
Code
public static function getByName($name) {
$date = DatexFormatter::toJalali();
return $date[$name];
}