public static function DatexObjectUtils::toArray in Datex 7
Returns granularity parts of a given date in an array.
File
- datex_api/
datex_api_classes.inc, line 1001 - API and helper functions used by other datex modules.
Class
- DatexObjectUtils
- Utitilities to work with a DatexObject
Code
public static function toArray($date = NULL) {
if (!is_a($date, 'DatexObject')) {
$date = new DatexObject($date, FALSE);
}
return $date
->toArray();
}