public static function Now(
      \DateTimeZone $timezone = null, bool $useDayStart = false, bool $useDayEnd = false ) : DateTime
   {

      $dt = new DateTime( 'now', $timezone );

      if ( $useDayStart )
      {
         $dt->setTime( 0, 0, 0 );
      }
      else if ( $useDayEnd )
      {
         $dt->setTime( 23, 59, 59 );
      }

      return $dt;

   }
public static function Now(
      \DateTimeZone $timezone = null, bool $useDayStart = false, bool $useDayEnd = false ) : DateTime
   {

      $dt = new DateTime( 'now', $timezone );

      if ( $useDayStart )
      {
         $dt->setTime( 0, 0, 0 );
      }
      else if ( $useDayEnd )
      {
         $dt->setTime( 23, 59, 59 );
      }

      return $dt;

   }
public static function Now ( \ DateTimeZone $ timezone = null , bool $ useDayStart = false , bool $ useDayEnd = false ) : DateTime { $ dt = new DateTime ( 'now' , $ timezone ) ; if ( $ useDayStart ) { $ dt -> setTime ( 0 , 0 , 0 ) ; } else if ( $ useDayEnd ) { $ dt -> setTime ( 23 , 59 , 59 ) ; } return $ dt ; }
Init's a \Beluga\Date\DateTime with current DateTime and returns it.

@param  \DateTimeZone $timezone
@param  boolean       $useDayStart Set 00:00:00 as time? (default=FALSE)
@param  boolean       $useDayEnd   Set 23:59:59 as time? (default=FALSE)
@return \Beluga\Date\DateTime
Init s a \ Beluga \ Date \ DateTime with current DateTime and returns it .