for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the core-library package.
*
* (c) 2018 WEBEWEB
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace WBW\Library\Core\Helper\Argument;
use DateTimeZone;
* Date/time zone helper.
* @author webeweb <https://github.com/webeweb/>
* @package WBW\Library\Core\Helper\Argument
class DateTimeZoneHelper {
* Determines if two date/time zone are equals.
* @param DateTimeZone $a The date/time zone A.
* @param DateTimeZone $b The date/time zone B.
* @return boolean Returns true in case o success, false otherwise.
public static function equals(DateTimeZone $a, DateTimeZone $b) {
return $a->getName() === $b->getName();
}