public static function FromDateTime( \DateTime $dt ) : DateTime
   {

      if ( $dt instanceof DateTime )
      {
         return clone $dt;
      }

      return new DateTime( $dt->format('Y-m-d H:i:s.u'), $dt->getTimezone() );

   }
public static function FromDateTime( \DateTime $dt ) : DateTime
   {

      if ( $dt instanceof DateTime )
      {
         return clone $dt;
      }

      return new DateTime( $dt->format('Y-m-d H:i:s.u'), $dt->getTimezone() );

   }
public static function FromDateTime ( \ DateTime $ dt ) : DateTime { if ( $ dt instanceof DateTime ) { return clone $ dt ; } return new DateTime ( $ dt -> format ( 'Y-m-d H:i:s.u' ) , $ dt -> getTimezone ( ) ) ; }
Create a DateTime instance from PHP \DateTime instance.

@param \DateTime $dt
@return \Beluga\Date\DateTime
Create a DateTime instance from PHP \ DateTime instance .