protected static function timestamp($blockSize = Cuid::NORMAL_BLOCK)
    {
        // Convert current time up to micro second to hash
        $hash = base_convert(
            floor(microtime(true) * 1000),
            Cuid::DECIMAL,
            Cuid::BASE36
        );

        // Limit hash if small block required
        if ($blockSize == Cuid::SMALL_BLOCK) {
            $hash = substr($hash, -2);
        }

        return $hash;
    }
protected static function timestamp($blockSize = Cuid::NORMAL_BLOCK)
    {
        // Convert current time up to micro second to hash
        $hash = base_convert(
            floor(microtime(true) * 1000),
            Cuid::DECIMAL,
            Cuid::BASE36
        );

        // Limit hash if small block required
        if ($blockSize == Cuid::SMALL_BLOCK) {
            $hash = substr($hash, -2);
        }

        return $hash;
    }
protected static function timestamp ( $ blockSize = Cuid :: NORMAL_BLOCK ) { // Convert current time up to micro second to hash $ hash = base_convert ( floor ( microtime ( true ) * 1000 ) , Cuid :: DECIMAL , Cuid :: BASE36 ) ; // Limit hash if small block required if ( $ blockSize == Cuid :: SMALL_BLOCK ) { $ hash = substr ( $ hash , - 2 ) ; } return $ hash ; }
Generate timestamp based hash

@return string Return timestamp based hash string
Generate timestamp based hash