public function v1(bool $optimize = true): string
    {
        $uuid = UuidGen::uuid1()->toString();

        if ($optimize) {
            // See: <http://jas.xyz/1ODZilT>
            $uuid = substr($uuid, 14, 4).
                substr($uuid, 9, 4).
                substr($uuid, 0, 8).
                substr($uuid, 19, 4).
                substr($uuid, 24);
        }
        return $uuid; // Possibly optimized now.
    }
public function v1(bool $optimize = true): string
    {
        $uuid = UuidGen::uuid1()->toString();

        if ($optimize) {
            // See: <http://jas.xyz/1ODZilT>
            $uuid = substr($uuid, 14, 4).
                substr($uuid, 9, 4).
                substr($uuid, 0, 8).
                substr($uuid, 19, 4).
                substr($uuid, 24);
        }
        return $uuid; // Possibly optimized now.
    }
public function v1 ( bool $ optimize = true ) : string { $ uuid = UuidGen :: uuid1 ( ) -> toString ( ) ; if ( $ optimize ) { // See: <http://jas.xyz/1ODZilT> $ uuid = substr ( $ uuid , 14 , 4 ) . substr ( $ uuid , 9 , 4 ) . substr ( $ uuid , 0 , 8 ) . substr ( $ uuid , 19 , 4 ) . substr ( $ uuid , 24 ) ; } return $ uuid ; // Possibly optimized now. }
UUID v1 generator.

@since 150424 Initial release.

@param bool $optimize Optimize?

@return string Version 1 UUID (32 bytes optimized).
Or 36 bytes unoptimized; i.e., w/ dashes.
UUID v1 generator .