public static function DatexFormatter::getTimestamp in Datex 7
Generates timestamp from given date.
1 call to DatexFormatter::getTimestamp()
- DatexFormatter::formatINTL in datex_api/
datex_api_classes.inc - Formats a date according to format given.
File
- datex_api/
datex_api_classes.inc, line 434 - API and helper functions used by other datex modules.
Class
- DatexFormatter
- Date tools for Jalali Dates.
Code
public static function getTimestamp($date) {
$date = self::ObjectFromDate($date);
return intval($date
->format('U'));
}